Επεξεργασία

Κοινή χρήση μέσω


WSDualHttpBinding.MessageEncoding Property

Definition

Gets or sets whether MTOM or Text/XML is used to encode SOAP messages.

public:
 property System::ServiceModel::WSMessageEncoding MessageEncoding { System::ServiceModel::WSMessageEncoding get(); void set(System::ServiceModel::WSMessageEncoding value); };
public System.ServiceModel.WSMessageEncoding MessageEncoding { get; set; }
member this.MessageEncoding : System.ServiceModel.WSMessageEncoding with get, set
Public Property MessageEncoding As WSMessageEncoding

Property Value

The value of WSMessageEncoding that indicates that MTOM or Text/XML is used to encode SOAP messages. The default value is Text.

Examples

The following example shows how to set the WSMessageEncoding property to MTOM.

binding.MessageEncoding = WSMessageEncoding.Mtom;
binding.MessageEncoding = WSMessageEncoding.Mtom

Applies to