ContextBindingElement.ExportPolicy 方法

定义

将自定义策略断言写入到绑定元素的上下文中。

public:
 virtual void ExportPolicy(System::ServiceModel::Description::MetadataExporter ^ exporter, System::ServiceModel::Description::PolicyConversionContext ^ context);
public virtual void ExportPolicy (System.ServiceModel.Description.MetadataExporter exporter, System.ServiceModel.Description.PolicyConversionContext context);
abstract member ExportPolicy : System.ServiceModel.Description.MetadataExporter * System.ServiceModel.Description.PolicyConversionContext -> unit
override this.ExportPolicy : System.ServiceModel.Description.MetadataExporter * System.ServiceModel.Description.PolicyConversionContext -> unit
Public Overridable Sub ExportPolicy (exporter As MetadataExporter, context As PolicyConversionContext)

参数

exporter
MetadataExporter

可导出元数据信息的 MetadataExporter

context
PolicyConversionContext

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

实现

例外

contextnull 或绑定中的策略断言为 null

适用于