NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Encoding.GetString (Byte[], Int32, Int32)

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;

Parameters

bytes
The byte array to decode.
index
The starting index of the byte array to decode.
count
The number of bytes to decode.

Return Value

A string containing the decoded representation of a range of bytes in the specified byte array.

Exceptions

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.

See Also

Encoding Class | Encoding Members | System.Text Namespace | Encoding.GetString Overload List