Convert::ToBase64CharArray Method
Converts a subset of an 8-bit unsigned integer array to an equivalent subset of a Unicode character array encoded with base 64 digits. Parameters specify the subsets as offsets in the input and output arrays, and the number of elements in the input array to convert.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Parameters
- inArray
- Type: array<System::Byte>
An input array of 8-bit unsigned integers.
- offsetIn
- Type: System::Int32
A position within inArray.
- length
- Type: System::Int32
The number of elements of inArray to convert.
- outArray
- Type: array<System::Char>
An output array of Unicode characters.
- offsetOut
- Type: System::Int32
A position within outArray.
| Exception | Condition |
|---|---|
| ArgumentNullException | inArray or outArray is nullptr. |
| ArgumentOutOfRangeException | offsetIn, offsetOut, or length is negative. -or- offsetIn plus length is greater than the length of inArray. -or- offsetOut plus the number of elements to return is greater than the length of outArray. |
The subset of length elements of inArray starting at position offsetIn, are taken as a numeric value and converted to a subset of elements in outArray starting at position offsetOut. The return value indicates the number of converted elements in outArray. The subset of outArray consists of base 64 digits.
The base 64 digits in ascending order from zero are the uppercase characters 'A' to 'Z', the lowercase characters 'a' to 'z', the numerals '0' to '9', and the symbols '+' and '/'. The valueless character, '=', is used for trailing padding.
The offset and length parameters are 32-bit signed numbers. The offsetIn and offsetOut parameters are zero-based array positions.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.