ConvertToBase64String Method (Byte, Int32, Int32) |
Converts a subset of an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits. Parameters specify the subset as an offset in the input array, and the number of elements in the array to convert.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static string ToBase64String(
byte[] inArray,
int offset,
int length
)
Parameters
- inArray
- Type: SystemByte
An array of 8-bit unsigned integers. - offset
- Type: SystemInt32
An offset in inArray. - length
- Type: SystemInt32
The number of elements of inArray to convert.
Return Value
Type:
StringThe string representation in base 64 of
length elements of
inArray, starting at position
offset.
Exceptions Exception | Condition |
---|
ArgumentNullException | inArray is null. |
ArgumentOutOfRangeException | offset or length is negative.-or- offset plus length is greater than the length of inArray. |
See Also