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!

CodePageEncoding.GetCharCount

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

[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
ArgumentException The bytes argument is null.
ArgumentException The index and count arguments do not denote a valid range in the byte array.

Remarks

This method overrides Encoding.GetCharCount.

See Also

CodePageEncoding Class | CodePageEncoding Members | System.Globalization Namespace