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.GetChars (Byte[], Int32, Int32)

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[];

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

An array of type Char containing the decoded representation of a range of bytes in the specified byte array.

Exceptions

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.

See Also

Encoding Class | Encoding Members | System.Text Namespace | Encoding.GetChars Overload List | GetCharCount | GetMaxCharCount