TransportBindingElementImporter 類別

定義

從附加原則運算式的 Web 服務描述語言 (英文) (WSDL) 文件匯入標準傳輸繫結元素。Imports standard transport binding elements from Web Services Description Language (WSDL) documents with attached policy expressions.

public ref class TransportBindingElementImporter : System::ServiceModel::Description::IPolicyImportExtension, System::ServiceModel::Description::IWsdlImportExtension
public class TransportBindingElementImporter : System.ServiceModel.Description.IPolicyImportExtension, System.ServiceModel.Description.IWsdlImportExtension
type TransportBindingElementImporter = class
    interface IWsdlImportExtension
    interface IPolicyImportExtension
Public Class TransportBindingElementImporter
Implements IPolicyImportExtension, IWsdlImportExtension
繼承
TransportBindingElementImporter
實作

備註

TransportBindingElementImporter 型別是 IWsdlImportExtensionIPolicyImportExtension 介面的實作。The TransportBindingElementImporter type is an implementation of the IWsdlImportExtension and IPolicyImportExtension interfaces. 它會從 WSDL 服務中繼資料匯入 HttpTransportBindingElementHttpsTransportBindingElementTcpTransportBindingElementNamedPipeTransportBindingElementMsmqTransportBindingElementPeerTransportBindingElement 執行個體。It imports the HttpTransportBindingElement, HttpsTransportBindingElement, TcpTransportBindingElement, NamedPipeTransportBindingElement, MsmqTransportBindingElement, and PeerTransportBindingElement instances from WSDL service metadata.

匯入這些 TransportBindingElement 型別時,TransportBindingElementImporter 型別也會從 WSDL 中繼資料匯入定址資訊。When these TransportBindingElement types are imported, the TransportBindingElementImporter type also imports the addressing information from the WSDL metadata.

建構函式

TransportBindingElementImporter()

初始化 TransportBindingElementImporter 類別的新執行個體。Initializes a new instance of the TransportBindingElementImporter class.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

IPolicyImportExtension.ImportPolicy(MetadataImporter, PolicyConversionContext)

從附加至 WSDL 繫結的原則匯入 TransportBindingElement 執行個體。Imports a TransportBindingElement instance from the policy attached to the WSDL binding.

IWsdlImportExtension.BeforeImport(ServiceDescriptionCollection, XmlSchemaSet, ICollection<XmlElement>)

將自訂原則判斷提示加入至要匯入之 WSDL 文件中的 WSDL 繫結。Adds custom policy assertions to the WSDL bindings in WSDL documents that are to be imported.

IWsdlImportExtension.ImportContract(WsdlImporter, WsdlContractConversionContext)

這個方法不會有任何作用。This method does nothing.

IWsdlImportExtension.ImportEndpoint(WsdlImporter, WsdlEndpointConversionContext)

如果尚未從附加至 WSDL 的原則匯入 HttpTransportBindingElement,便從 WSDL 連接埠匯入定址資訊並從 SOAP 傳輸 URI 匯入 HttpsTransportBindingElementTransportBindingElementImports addressing information from the WSDL port and imports an HttpTransportBindingElement or an HttpsTransportBindingElement from the SOAP transport URI if a TransportBindingElement is not already imported from policy attached to the WSDL.

適用於

另請參閱