Export (0) Print
Expand All

Encoding Members

Encoding overview

Public Properties

public propertystatic (Shared in Visual Basic)ASCII

Supported by the .NET Compact Framework.

Gets an encoding for the ASCII (7 bit) character set.
public propertystatic (Shared in Visual Basic)BigEndianUnicode

Supported by the .NET Compact Framework.

Gets an encoding for the Unicode format in the big-endian byte order.
public propertyBodyName Gets the name for this encoding that can be used with mail agent body tags.
public propertyCodePage

Supported by the .NET Compact Framework.

When overridden in a derived class, gets the code page identifier of this encoding.
public propertystatic (Shared in Visual Basic)Default

Supported by the .NET Compact Framework.

Gets an encoding for the system's current ANSI code page.
public propertyEncodingName Gets the human-readable description of the encoding.
public propertyHeaderName Gets the name for this encoding that can be used with mail agent header tags.
public propertyIsBrowserDisplay Gets an indication whether this encoding can be used for display by browser clients.
public propertyIsBrowserSave Gets an indication whether this encoding can be used for saving by browser clients.
public propertyIsMailNewsDisplay Gets and indication whether this encoding can be used for display by mail and news clients.
public propertyIsMailNewsSave Gets an indication whether this encoding can be used for saving by mail and news clients.
public propertystatic (Shared in Visual Basic)Unicode

Supported by the .NET Compact Framework.

Gets an encoding for the Unicode format in little-endian byte order.
public propertystatic (Shared in Visual Basic)UTF7

Supported by the .NET Compact Framework.

Gets an encoding for the UTF-7 format.
public propertystatic (Shared in Visual Basic)UTF8

Supported by the .NET Compact Framework.

Gets an encoding for the UTF-8 format.
public propertyWebName

Supported by the .NET Compact Framework.

Gets the name registered with the Internet Assigned Numbers Authority (IANA) for this encoding.
public propertyWindowsCodePage Gets the Windows operating system code page that most closely corresponds to this encoding.

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 Constructors

protected constructorEncoding Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the Encoding class.

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

Show:
© 2014 Microsoft