Decodes a range of bytes from a byte array into a character array.
[Visual Basic] Overloads Overridable Public Function GetChars( _ ByVal bytes() As Byte, _ ByVal index As Integer, _ ByVal count As Integer _ ) As Char () [C#] public virtual char[] GetChars( byte[] bytes, int index, int count ); [C++] public: virtual __wchar_t* GetChars( unsigned char* bytes[], int index, int count ) []; [JScript] public function GetChars( bytes : Byte[], index : int, count : int ) : Char[];
An array of type Char containing the decoded representation of a range of bytes in the specified byte array.
Exception Type | Condition |
---|---|
ArgumentNullException | bytes is a null reference (in Visual Basic Nothing). |
ArgumentOutOfRangeException | index and count do not denote a valid range in the byte array. |
Encoding Class | Encoding Members | System.Text Namespace | Encoding.GetChars Overload List | GetCharCount | GetMaxCharCount