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!

UTF8Encoding.GetCharCount

Returns the number of characters produced by decoding a specified range of bytes in an array.

[Visual Basic]
Overrides Public Function GetCharCount( _
   ByVal bytes() As Byte, _
   ByVal index As Integer, _
   ByVal count As Integer _
) As Integer
[C#]
public override int GetCharCount(
   byte[] bytes,
   int index,
   int count
);
[C++]
public: override int GetCharCount(
   unsigned char* bytes[],
   int index,
   int count
);
[JScript]
public override function GetCharCount(
   bytes : Byte[],
   index : int,
   count : int
) : int;

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

The number of characters produced by decoding 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.

Remarks

Overrides GetCharCount.

See Also

UTF8Encoding Class | UTF8Encoding Members | System.Text Namespace | GetCharCount