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。 匯入端點時會應用這個原則判斷提示,以便匯入正確的傳輸繫結項目。

適用於