Export (0) Print
Expand All

ASCIIEncoding Methods

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

Public Methods

public methodEquals (inherited from Encoding)

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. 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 specified set of elements from a byte array, and stores the result into a specified set of elements in a Unicode character array.
public methodGetDecoder (inherited from Encoding)

Supported by the .NET Compact Framework.

Returns a Decoder for this encoding.
public methodGetEncoder (inherited from Encoding)

Supported by the .NET Compact Framework.

An Encoder for this encoding.
public methodGetHashCode (inherited from Encoding)

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 (inherited from Encoding)

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. Overridden. Converts a specified array of bytes to 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

ASCIIEncoding Class | System.Text Namespace

Show:
© 2015 Microsoft