public static byte[] StringToBinary(
string input,
EncodingType encoding = EncodingType.Base64
)
Public Shared Function StringToBinary (
input As String,
Optional encoding As EncodingType = EncodingType.Base64
) As Byte()
public:
static array<unsigned char>^ StringToBinary(
String^ input,
EncodingType encoding = EncodingType::Base64
)
static member StringToBinary :
input : string *
?encoding : EncodingType
(* Defaults:
let _encoding = defaultArg encoding EncodingType.Base64
*)
-> byte[]
If encoding parameter is set to Base64Header, the method will accept any properly formatted PEM header and footer.
ArgumentException | And invalid encoding is specified. |
InvalidDataException | The string cannot be decoded. |