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;
The number of characters produced by decoding the byte array.
Exception Type | Condition |
---|---|
ArgumentException | If bytes is null. |
ArgumentException | if index and count do not denote a valid range in the byte array. |
This method overrides GetCharCount.
ASCIIEncoding Class | ASCIIEncoding Members | System.Text Namespace