MtomMessageEncodingBindingElement.IPolicyExportExtension.ExportPolicy 方法

定义

策略断言生成之后会插入到 WSDL 中,指示 MTOM 编码正在使用中。

 virtual void System.ServiceModel.Description.IPolicyExportExtension.ExportPolicy(System::ServiceModel::Description::MetadataExporter ^ exporter, System::ServiceModel::Description::PolicyConversionContext ^ policyContext) = System::ServiceModel::Description::IPolicyExportExtension::ExportPolicy;
void IPolicyExportExtension.ExportPolicy (System.ServiceModel.Description.MetadataExporter exporter, System.ServiceModel.Description.PolicyConversionContext policyContext);
abstract member System.ServiceModel.Description.IPolicyExportExtension.ExportPolicy : System.ServiceModel.Description.MetadataExporter * System.ServiceModel.Description.PolicyConversionContext -> unit
override this.System.ServiceModel.Description.IPolicyExportExtension.ExportPolicy : System.ServiceModel.Description.MetadataExporter * System.ServiceModel.Description.PolicyConversionContext -> unit
Sub ExportPolicy (exporter As MetadataExporter, policyContext As PolicyConversionContext) Implements IPolicyExportExtension.ExportPolicy

参数

exporter
MetadataExporter

可导出协定信息的 WsdlExporter

policyContext
PolicyConversionContext

一个 WsdlContractConversionContext 对象,该对象提供从导出的 WSDL 元素到协定说明的映射。

实现

例外

policyContextnull

注解

此策略断言指示,MTOM 优化可用于这一终结点中。 这表明必须接受文本或 MTOM 格式的消息。 此策略断言在客户端已经过分析,并且接受 MTOM 编码消息的功能已启用。 策略断言如下所示。

<wsoma:OptimizedMimeSerialization xmlns:wsoma="http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization" />  

适用于