Returns the number of bytes required to encode a range of characters in the specified array.
[Visual Basic] Overrides Public Function GetByteCount( _ ByVal chars() As Char, _ ByVal index As Integer, _ ByVal count As Integer _ ) As Integer [C#] public override int GetByteCount( char[] chars, int index, int count ); [C++] public: override int GetByteCount( __wchar_t* chars[], int index, int count ); [JScript] public override function GetByteCount( chars : Char[], index : int, count : int ) : int;
The number of bytes required to encode a range of characters in the specified character array.
Exception Type | Condition |
---|---|
ArgumentException | The chars argument is null. |
ArgumentException | The index and count arguments do not denote a valid range in the character array. |
This method overrides Encoding.GetByteCount.
CodePageEncoding Class | CodePageEncoding Members | System.Globalization Namespace