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 Members

Represents a character encoding.

The Encoding type exposes the following members.

  NameDescription
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Encoding Overloaded. Initializes a new instance of the Encoding class.
Top

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Clone When overridden in a derived class, creates a shallow copy of the current Encoding object.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Convert Overloaded. Converts a byte array from one encoding to another.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Determines whether the specified Object is equal to the current instance. (Overrides Object.Equals(Object).)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetByteCount Overloaded. When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetBytes Overloaded. When overridden in a derived class, encodes a set of characters into a sequence of bytes.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetCharCount Overloaded. When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetChars Overloaded. When overridden in a derived class, decodes a sequence of bytes into a set of characters.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetDecoder When overridden in a derived class, obtains a decoder that converts an encoded sequence of bytes into a sequence of characters.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetEncoder When overridden in a derived class, obtains an encoder that converts a sequence of Unicode characters into an encoded sequence of bytes.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetEncoding Overloaded. Returns an encoding for the specified code page.
Public method Static member GetEncodings Returns an array containing all encodings.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Returns the hash code for the current instance. (Overrides Object.GetHashCode().)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetMaxByteCount When overridden in a derived class, calculates the maximum number of bytes produced by encoding the specified number of characters.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetMaxCharCount When overridden in a derived class, calculates the maximum number of characters produced by decoding the specified number of bytes.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetPreamble When overridden in a derived class, returns a sequence of bytes that specifies the encoding used.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetString Overloaded. When overridden in a derived class, decodes a sequence of bytes into a string.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method IsAlwaysNormalized Overloaded. Gets a value indicating whether the current encoding is always normalized.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework ASCII Gets an encoding for the ASCII (7-bit) character set.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework BigEndianUnicode Gets an encoding for the UTF-16 format using the big endian byte order.
Public property BodyName When overridden in a derived class, gets a name for the current encoding that can be used with mail agent body tags.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework CodePage When overridden in a derived class, gets the code page identifier of the current Encoding.
Public property DecoderFallback Gets or sets the DecoderFallback object for the current Encoding object.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework Default Gets an encoding for the operating system's current ANSI code page.
Public property EncoderFallback Gets or sets the EncoderFallback object for the current Encoding object.
Public property EncodingName When overridden in a derived class, gets the human-readable description of the current encoding.
Public property HeaderName When overridden in a derived class, gets a name for the current encoding that can be used with mail agent header tags.
Public property IsBrowserDisplay When overridden in a derived class, gets a value indicating whether the current encoding can be used by browser clients for displaying content.
Public property IsBrowserSave When overridden in a derived class, gets a value indicating whether the current encoding can be used by browser clients for saving content.
Public property IsMailNewsDisplay When overridden in a derived class, gets a value indicating whether the current encoding can be used by mail and news clients for displaying content.
Public property IsMailNewsSave When overridden in a derived class, gets a value indicating whether the current encoding can be used by mail and news clients for saving content.
Public property IsReadOnly When overridden in a derived class, gets a value indicating whether the current encoding is read-only.
Public property IsSingleByte When overridden in a derived class, gets a value indicating whether the current encoding uses single-byte code points.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework Unicode Gets an encoding for the UTF-16 format using the little endian byte order.
Public property Static member UTF32 Gets an encoding for the UTF-32 format using the little endian byte order.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework UTF7 Gets an encoding for the UTF-7 format.
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework UTF8 Gets an encoding for the UTF-8 format.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework WebName When overridden in a derived class, gets the name registered with the Internet Assigned Numbers Authority (IANA) for the current encoding.
Public property WindowsCodePage When overridden in a derived class, gets the Windows operating system code page that most closely corresponds to the current encoding.
Top

Community Additions

Show:
© 2014 Microsoft