This documentation is archived and is not being maintained.

UTF8Encoding Methods

The methods of the UTF8Encoding class are listed here. For a complete list of UTF8Encoding class members, see the UTF8Encoding Members topic.

Public Methods

public methodEquals

Supported by the .NET Compact Framework.

Overridden. Returns a value indicating whether this instance is equal to a specified object.
public methodGetByteCount

Supported by the .NET Compact Framework.

Overloaded. Overridden. Calculates the number of bytes required to store the results of encoding a set of characters from a specified String or Unicode character array.
public methodGetBytes

Supported by the .NET Compact Framework.

Overloaded. Overridden. Encodes a specified range of characters from a Unicode character array or a String and stores the results in a specified byte array.
public methodGetCharCount

Supported by the .NET Compact Framework.

Overloaded. Overridden. Calculates the number of characters that would result from decoding a set of elements in a byte array.
public methodGetChars

Supported by the .NET Compact Framework.

Overloaded. Overridden. Decodes a set of elements from a specified byte array and stores the result into a specified set of elements in a Unicode character array.
public methodGetDecoder

Supported by the .NET Compact Framework.

Overridden. Obtains a decoder that can convert a UTF-8 encoded sequence of bytes into a sequence of Unicode characters.
public methodGetEncoder

Supported by the .NET Compact Framework.

Overridden. Obtains an encoder that can convert a sequence of Unicode characters into a UTF-8 encoded sequence of bytes.
public methodGetHashCode

Supported by the .NET Compact Framework.

Overridden. Returns the hash code for this instance.
public methodGetMaxByteCount

Supported by the .NET Compact Framework.

Overridden. Calculates the maximum number of bytes required to encode a specified number of characters.
public methodGetMaxCharCount

Supported by the .NET Compact Framework.

Overridden. Calculates the maximum number of characters that can result from decoding a specified number of bytes.
public methodGetPreamble

Supported by the .NET Compact Framework.

Overridden. Returns a Unicode byte order mark encoded in UTF-8 format, if the constructor for this instance requested byte order mark support.
public methodGetString (inherited from Encoding)

Supported by the .NET Compact Framework.

Overloaded. Decodes the specified byte array into a string.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

UTF8Encoding Class | System.Text Namespace

Show: