BasicHttpBinding.MessageEncoding Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets whether MTOM or Text 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 whether MTOM or Text/XML is used to encode SOAP messages. The default value is Text.
Examples
The following example sets MessageEncoding to Text.
BasicHttpBinding binding = new BasicHttpBinding();
// Use double the default value
binding.MessageEncoding = WSMessageEncoding.Text;
The value of this property can also be set in the configuration file.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.