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!

ASCIIEncoding.GetCharCount

Gets 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 where decoding begins.
count
The number of bytes to decode.

Return Value

The number of characters produced by decoding the byte array.

Exceptions

Exception Type Condition
ArgumentException If bytes is null.
ArgumentException if index and count do not denote a valid range in the byte array.

Remarks

This method overrides GetCharCount.

See Also

ASCIIEncoding Class | ASCIIEncoding Members | System.Text Namespace