Returns a string containing the decoded representation of a range of bytes in a byte array.
[Visual Basic] Overloads Overridable Public Function GetString( _ ByVal bytes() As Byte, _ ByVal index As Integer, _ ByVal count As Integer _ ) As String [C#] public virtual string GetString( byte[] bytes, int index, int count ); [C++] public: virtual String* GetString( unsigned char* bytes[], int index, int count ); [JScript] public function GetString( bytes : Byte[], index : int, count : int ) : String;
A string containing the decoded representation of a range of bytes in the specified byte array.
Exception Type | Condition |
---|---|
ArgumentNullException | The bytes parameter is a null reference (in Visual Basic Nothing). |
ArgumentOutOfRangeException | The index and count parameters do not denote a valid range in the byte array. |
Encoding Class | Encoding Members | System.Text Namespace | Encoding.GetString Overload List