共用方式為


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
'Usage
Dim name As String
Dim returnValue As ByteEncoder

returnValue = ByteEncoder.GetEncoder(name)
public static ByteEncoder GetEncoder(
    string name
)

Parameters

  • name
    Type: System.String

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

    • QuotedPrintable

    • UUEncode

    • BinHex

Exceptions

Exception Condition
NotSupportedException

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