MessageEncoderFactory.Encoder MessageEncoderFactory.Encoder MessageEncoderFactory.Encoder MessageEncoderFactory.Encoder Property

定義

在衍生類別中覆寫時,會取得此處理站產生的訊息編碼器。When overridden in a derived class, gets the message encoder that is produced by the factory.

public:
 abstract property System::ServiceModel::Channels::MessageEncoder ^ Encoder { System::ServiceModel::Channels::MessageEncoder ^ get(); };
public abstract System.ServiceModel.Channels.MessageEncoder Encoder { get; }
member this.Encoder : System.ServiceModel.Channels.MessageEncoder
Public MustOverride ReadOnly Property Encoder As MessageEncoder

屬性值

此處理站使用的 MessageEncoderThe MessageEncoder used by the factory.

範例

下列程式碼說明如何實作 Encoder 屬性:The following code illustrates how to implement the Encoder property:

public override MessageEncoder Encoder
{
    get 
    { 
        return this.encoder;
    }
}

適用於