StandardBindingImporter.IWsdlImportExtension.BeforeImport 方法

定义

在导入与标准绑定关联的元数据文档之前调用。

 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

参数

xmlSchemas
XmlSchemaSet

描述 XmlSchemaSetwsdlDocuments

policy
ICollection<XmlElement>

ICollection<T> 类型的 XmlElement,其中包含策略元素。

实现

注解

从所提供的元数据进行任何导入前,要先调用所有已注册 BeforeImport 对象的 IWsdlImportExtension 方法。 此时,你可以直接修改随后要导入标准绑定对象的元数据。

适用于