Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Encoding Methods

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

Public Methods

public methodstatic (Shared in Visual Basic)Convert

Supported by the .NET Compact Framework.

Overloaded. Converts a byte array from one encoding to another.
public methodEquals

Supported by the .NET Compact Framework.

Overridden. Determines whether the current instance and the specified Object represent the same type and value.
public methodGetByteCount

Supported by the .NET Compact Framework.

Overloaded. Calculates the number of bytes required to encode a specified character array.
public methodGetBytes

Supported by the .NET Compact Framework.

Overloaded. Encodes all or part of a specified String or character array into a byte array.
public methodGetCharCount

Supported by the .NET Compact Framework.

Overloaded. Calculates the number of characters produced by decoding an array of bytes.
public methodGetChars

Supported by the .NET Compact Framework.

Overloaded. Decodes a byte array into an array of characters.
public methodGetDecoder

Supported by the .NET Compact Framework.

Returns a Decoder for this encoding.
public methodGetEncoder

Supported by the .NET Compact Framework.

An Encoder for this encoding.
public methodstatic (Shared in Visual Basic)GetEncoding

Supported by the .NET Compact Framework.

Overloaded. Returns an Encoding for the specified code page value or name.
public methodGetHashCode

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

When overridden in a derived class, returns the maximum number of bytes required to encode a given number of characters.
public methodGetMaxCharCount

Supported by the .NET Compact Framework.

When overridden in a derived class, returns the maximum number of characters produced by decoding a given number of bytes.
public methodGetPreamble

Supported by the .NET Compact Framework.

Returns a set of bytes used at the beginning of a stream to determine which encoding a file was created with. This can include the Unicode byte order mark.
public methodGetString

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

Encoding Class | System.Text Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft