This documentation is archived and is not being maintained.

UnicodeEncoding.GetByteCount Method

Calculates the number of bytes produced by encoding a set of characters.

Name Description
UnicodeEncoding.GetByteCount (Char[]) When overridden in a derived class, calculates the number of bytes produced by encoding all the characters in the specified character array.
UnicodeEncoding.GetByteCount (String) Calculates the number of bytes produced by encoding the characters in the specified String.

Supported by the .NET Compact Framework.

UnicodeEncoding.GetByteCount (Char*, Int32) Calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer.
UnicodeEncoding.GetByteCount (Char[], Int32, Int32) Calculates the number of bytes produced by encoding a set of characters from the specified character array.

Supported by the .NET Compact Framework.

Show: