共用方式為


TransportBindingElementImporter.IWsdlImportExtension.ImportEndpoint 方法

定義

如果尚未從附加至 WSDL 的原則匯入 HttpTransportBindingElement,便從 WSDL 連接埠匯入定址資訊並從 SOAP 傳輸 URI 匯入 HttpsTransportBindingElementTransportBindingElement

 virtual void System.ServiceModel.Description.IWsdlImportExtension.ImportEndpoint(System::ServiceModel::Description::WsdlImporter ^ importer, System::ServiceModel::Description::WsdlEndpointConversionContext ^ context) = System::ServiceModel::Description::IWsdlImportExtension::ImportEndpoint;
void IWsdlImportExtension.ImportEndpoint (System.ServiceModel.Description.WsdlImporter importer, System.ServiceModel.Description.WsdlEndpointConversionContext context);
abstract member System.ServiceModel.Description.IWsdlImportExtension.ImportEndpoint : System.ServiceModel.Description.WsdlImporter * System.ServiceModel.Description.WsdlEndpointConversionContext -> unit
override this.System.ServiceModel.Description.IWsdlImportExtension.ImportEndpoint : System.ServiceModel.Description.WsdlImporter * System.ServiceModel.Description.WsdlEndpointConversionContext -> unit
Sub ImportEndpoint (importer As WsdlImporter, context As WsdlEndpointConversionContext) Implements IWsdlImportExtension.ImportEndpoint

參數

importer
WsdlImporter

執行匯入的 WsdlImporter

實作

例外狀況

contextnull

-或-

context.Endpoint.Binding 為 null

備註

如果匯入的繫結包含不是由此型別匯入的 TransportBindingElement,這個方法就不會匯入附加至 WSDL 的定址資訊。

適用於