ByteEncoder.GetEncoder Method

The GetEncoder method returns a ByteEncoder object that can encode data by using the encoding specified by the name parameter.

Namespace: Microsoft.Exchange.Data.Mime.Encoders
Assembly: Microsoft.Exchange.Data.Common (in microsoft.exchange.data.common.dll)

Syntax

'Declaration
Public Shared Function GetEncoder ( _
    name As String _
) As ByteEncoder
public static ByteEncoder GetEncoder (
    string name
)
public:
static ByteEncoder^ GetEncoder (
    String^ name
)
public static ByteEncoder GetEncoder (
    String name
)
public static function GetEncoder (
    name : String
) : ByteEncoder

Parameters

  • name
    The type of data the returned encoder will encode. Possible values are:

    • Base64

    • QuotedPrintable

    • UUEncode

    • BinHex

Exceptions

Exception type Condition
NotSupportedException

The name parameter was not one of "Base64," "QuotedPrintable," "UUEncode," or "BinHex."

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003