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 的寻址信息。

适用于