Base64Encode(IEnumerableByte, Base64FormattingOptions) Method
Converts a
Byte collection to a corresponding Base64-encoded
string. You can determine, whether line breaks are to be inserted into the return
value.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static string Encode(
IEnumerable<byte>? bytes,
Base64FormattingOptions options = Base64FormattingOptions.None
)
Public Shared Function Encode (
bytes As IEnumerable(Of Byte),
Optional options As Base64FormattingOptions = Base64FormattingOptions.None
) As String
public:
static String^ Encode(
IEnumerable<unsigned char>^ bytes,
Base64FormattingOptions options = Base64FormattingOptions::None
)
static member Encode :
bytes : IEnumerable<byte> *
?options : Base64FormattingOptions
(* Defaults:
let _options = defaultArg options Base64FormattingOptions.None
*)
-> string
- bytes IEnumerableByte
- A Byte collection that contains the data to encode,
or null.
- options Base64FormattingOptions (Optional)
- One of the enumeration values, which specify whether or not
line breaks are to be inserted into the return value. The default is
None.
StringThe string representation of the elements in
bytes as
Base64.