共用方式為


TextMessageEncodingBindingElement.IPolicyExportExtension.ExportPolicy 方法

定義

從繫結項目中包含的編碼原則產生 WSDL 合約資訊。

 virtual void System.ServiceModel.Description.IPolicyExportExtension.ExportPolicy(System::ServiceModel::Description::MetadataExporter ^ exporter, System::ServiceModel::Description::PolicyConversionContext ^ context) = System::ServiceModel::Description::IPolicyExportExtension::ExportPolicy;
void IPolicyExportExtension.ExportPolicy (System.ServiceModel.Description.MetadataExporter exporter, System.ServiceModel.Description.PolicyConversionContext context);
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, context As PolicyConversionContext) Implements IPolicyExportExtension.ExportPolicy

參數

exporter
MetadataExporter

WsdlExporter,可匯出合約資訊。

context
PolicyConversionContext

WsdlContractConversionContext 物件,提供從匯出的 WSDL 項目到合約描述之間的對應。

實作

例外狀況

contextnull

適用於