共用方式為


TextMessageEncodingBindingElement.IWsdlExportExtension.ExportContract 方法

定義

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

 virtual void System.ServiceModel.Description.IWsdlExportExtension.ExportContract(System::ServiceModel::Description::WsdlExporter ^ exporter, System::ServiceModel::Description::WsdlContractConversionContext ^ context) = System::ServiceModel::Description::IWsdlExportExtension::ExportContract;
void IWsdlExportExtension.ExportContract (System.ServiceModel.Description.WsdlExporter exporter, System.ServiceModel.Description.WsdlContractConversionContext context);
abstract member System.ServiceModel.Description.IWsdlExportExtension.ExportContract : System.ServiceModel.Description.WsdlExporter * System.ServiceModel.Description.WsdlContractConversionContext -> unit
override this.System.ServiceModel.Description.IWsdlExportExtension.ExportContract : System.ServiceModel.Description.WsdlExporter * System.ServiceModel.Description.WsdlContractConversionContext -> unit
Sub ExportContract (exporter As WsdlExporter, context As WsdlContractConversionContext) Implements IWsdlExportExtension.ExportContract

參數

exporter
WsdlExporter

WsdlExporter,可匯出合約資訊。

context
WsdlContractConversionContext

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

實作

備註

TextMessageEncodingBindingElement 會負責設定 WSDL 中訊息版本的相關資訊。 不過這是由 IWsdlExportExtension.ExportEndpoint(WsdlExporter, WsdlEndpointConversionContext) 方法達成,而不是由已實作但空白的 IWsdlExportExtension.ExportContract(WsdlExporter, WsdlContractConversionContext) 來達成。

適用於