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!

Encoding.GetCharCount (Byte[])

Returns the number of characters required to decode an array of bytes.

[Visual Basic]
Overloads Overridable Public Function GetCharCount( _
   ByVal bytes() As Byte _
) As Integer
[C#]
public virtual int GetCharCount(
   byte[] bytes
);
[C++]
public: virtual int GetCharCount(
   unsigned char* bytes[]
);
[JScript]
public function GetCharCount(
   bytes : Byte[]
) : int;

Parameters

bytes
The byte array to decode.

Return Value

The number of characters produced by decoding the specified byte array.

Exceptions

Exception Type Condition
ArgumentException bytes is a null reference (in Visual Basic Nothing).

See Also

Encoding Class | Encoding Members | System.Text Namespace | Encoding.GetCharCount Overload List