Method ToByteArray ToByteArray() Allocates a new byte array, copies the payload data into it and returns it. Declaration public virtual byte[] ToByteArray() Returns Type Description System.Byte[]