This documentation is archived and is not being maintained.
Encoding Methods
Visual Studio 2008
The Encoding type exposes the following members.
| Name | Description | |
|---|---|---|
|
Clone | When overridden in a derived class, creates a shallow copy of the current Encoding object. |
|
Convert | Overloaded. Converts a byte array from one encoding to another. |
|
Equals | Determines whether the specified Object is equal to the current instance. (Overrides Object::Equals(Object).) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetByteCount | Overloaded. When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters. |
|
GetBytes | Overloaded. When overridden in a derived class, encodes a set of characters into a sequence of bytes. |
|
GetCharCount | Overloaded. When overridden in a derived class, calculates the number of characters produced by decoding a sequence of bytes. |
|
GetChars | Overloaded. When overridden in a derived class, decodes a sequence of bytes into a set of characters. |
|
GetDecoder | When overridden in a derived class, obtains a decoder that converts an encoded sequence of bytes into a sequence of characters. |
|
GetEncoder | When overridden in a derived class, obtains an encoder that converts a sequence of Unicode characters into an encoded sequence of bytes. |
|
GetEncoding | Overloaded. Returns an encoding for the specified code page. |
|
GetEncodings | Returns an array containing all encodings. |
|
GetHashCode | Returns the hash code for the current instance. (Overrides Object::GetHashCode().) |
|
GetMaxByteCount | When overridden in a derived class, calculates the maximum number of bytes produced by encoding the specified number of characters. |
|
GetMaxCharCount | When overridden in a derived class, calculates the maximum number of characters produced by decoding the specified number of bytes. |
|
GetPreamble | When overridden in a derived class, returns a sequence of bytes that specifies the encoding used. |
|
GetString | Overloaded. When overridden in a derived class, decodes a sequence of bytes into a string. |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
IsAlwaysNormalized | Overloaded. Gets a value indicating whether the current encoding is always normalized. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Show: