NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

UTF7Encoding.GetEncoder

Returns an encoder for the current instance of encoding.

[Visual Basic]
Overrides Public Function GetEncoder() As Encoder
[C#]
public override Encoder GetEncoder();
[C++]
public: override Encoder* GetEncoder();
[JScript]
public override function GetEncoder() : Encoder;

Return Value

An Encoder for the current encoding.

Remarks

The encoder can be used to encode a sequence of characters into a sequence of bytes.

Unlike GetBytes, an encoder can convert partial sequences of characters into partial sequences of bytes by maintaining the appropriate state between the conversions.

The default implementation returns an encoder that simply forwards calls to GetByteCount and GetBytes to the corresponding methods of this encoding. Encoding that requires state to be maintained between successive conversions should override this method and return an instance of an appropriate encoder implementation.

See Also

UTF7Encoding Class | UTF7Encoding Members | System.Text Namespace | GetByteCount | GetBytes