TransportBindingElementImporter.IWsdlImportExtension.BeforeImport 方法

定义

将自定义策略断言添加到要导入的 WSDL 文档中的 WSDL 绑定。

 virtual void System.ServiceModel.Description.IWsdlImportExtension.BeforeImport(System::Web::Services::Description::ServiceDescriptionCollection ^ wsdlDocuments, System::Xml::Schema::XmlSchemaSet ^ xmlSchemas, System::Collections::Generic::ICollection<System::Xml::XmlElement ^> ^ policy) = System::ServiceModel::Description::IWsdlImportExtension::BeforeImport;
void IWsdlImportExtension.BeforeImport (System.Web.Services.Description.ServiceDescriptionCollection wsdlDocuments, System.Xml.Schema.XmlSchemaSet xmlSchemas, System.Collections.Generic.ICollection<System.Xml.XmlElement> policy);
abstract member System.ServiceModel.Description.IWsdlImportExtension.BeforeImport : System.Web.Services.Description.ServiceDescriptionCollection * System.Xml.Schema.XmlSchemaSet * System.Collections.Generic.ICollection<System.Xml.XmlElement> -> unit
override this.System.ServiceModel.Description.IWsdlImportExtension.BeforeImport : System.Web.Services.Description.ServiceDescriptionCollection * System.Xml.Schema.XmlSchemaSet * System.Collections.Generic.ICollection<System.Xml.XmlElement> -> unit
Sub BeforeImport (wsdlDocuments As ServiceDescriptionCollection, xmlSchemas As XmlSchemaSet, policy As ICollection(Of XmlElement)) Implements IWsdlImportExtension.BeforeImport

参数

wsdlDocuments
ServiceDescriptionCollection

要导入的 WSDL 文档的集合。

xmlSchemas
XmlSchemaSet

要导入的 XML 架构文档的集合。

policy
ICollection<XmlElement>

要导入的策略断言的集合。

实现

注解

此方法会将策略表达式附加到已附加策略的 WSDL 绑定。 添加的策略表达式包含自定义策略断言,而该断言包含来自 SOAP 绑定的 SOAP 传输 URI。 导入终结点时,会使用此策略断言来导入正确的传输绑定元素。

适用于