MessageEncodingBindingElementImporter.IWsdlImportExtension.BeforeImport(ServiceDescriptionCollection, XmlSchemaSet, ICollection<XmlElement>) 方法
定义
在导入与编码关联的元数据文档之前调用。Called prior to importing the metadata documents associated with the encoding.
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
描述服务的 ServiceDescriptionCollection。The ServiceDescriptionCollection that describes the services.
- xmlSchemas
- XmlSchemaSet
包含 XmlSchemaSet 的架构的 wsdlDocuments。The XmlSchemaSet that contains the schema for the wsdlDocuments.
- policy
- ICollection<XmlElement>
ICollection<T> 类型的 XmlElement,其中包含策略元素。The ICollection<T> of type XmlElement that contains the policy elements.
实现
注解
这个方法用于在 MessageEncodingBindingElementImporter 执行导入之前检查、修改和解释策略和 WSDL。This method is used to inspect, modify and interpret the policy and WSDL before the MessageEncodingBindingElementImporter does the import.