Method ToByteArray
ToByteArray()
Converts the value represented by this instance to a byte array.
Declaration
public override byte[] ToByteArray()
Returns
Type | Description |
---|---|
Byte[] | A byte array resulting from decoding a Base64-encoded value represented by this instance. |
Overrides
Remarks
This method is valid only if the string represented by this value
represents a Base64-encoded binary value. It performs the same
conversion as FromBase64String(String).
Exceptions
Type | Condition |
---|---|
FormatException | The value represented by this instance is not a valid Base64 string. |