ReliableSessionBindingElementImporter 類別

定義

將可靠工作階段繫結項目對應至中繼資料內其對應原則判斷提示表示法,並且從其中對應這些項目。Maps reliable session binding elements to and from representations of their corresponding policy assertions in metadata. 這個類別無法被繼承。This class cannot be inherited.

public ref class ReliableSessionBindingElementImporter sealed : System::ServiceModel::Description::IPolicyImportExtension
public sealed class ReliableSessionBindingElementImporter : System.ServiceModel.Description.IPolicyImportExtension
type ReliableSessionBindingElementImporter = class
    interface IPolicyImportExtension
Public NotInheritable Class ReliableSessionBindingElementImporter
Implements IPolicyImportExtension
繼承
ReliableSessionBindingElementImporter
實作

備註

Windows Communication Foundation (WCF) 會使用這個類別來匯入可靠會話繫結項目, 以在中繼資料中系結原則判斷提示。Windows Communication Foundation (WCF) uses this class to import reliable session binding elements to binding policy assertions in metadata. 這個類別會採用可靠工作階段繫結項目,然後在服務時將自訂原則判斷提示寫入 WSDL 檔。This class takes the reliable session binding elements and writes custom policy assertions into the WSDL file when on the service. 在用戶端,它則會尋找這些判斷提示並將對應的繫結項目插回用戶端繫結。On the client, it looks for those assertions and inserts a corresponding binding element back into the client binding. 請注意,在繫結中存在的可靠工作階段會呈現為 WS-Reliable 訊息原則規格中描述的可靠訊息判斷提示。Note that the presence of a reliable session in a binding is rendered as the reliable message assertion described in the WS-Reliable Messaging Policy specification.

如需有關在系結至 WSDL 資訊之間交換原則判斷提示IPolicyImportExtensionIPolicyExportExtension詳細資訊, 請參閱和介面:For more information about exchanging policy assertions between bindings to WSDL information see the IPolicyImportExtension and IPolicyExportExtension interfaces:

建構函式

ReliableSessionBindingElementImporter()

初始化 ReliableSessionBindingElementImporter 類別的新執行個體。Initializes a new instance of the ReliableSessionBindingElementImporter 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)

將 WS-Reliable 訊息原則判斷提示轉換為用戶端繫結中的可靠工作階段繫結項目。Converts WS-Reliable Message policy assertions into the reliable session binding elements in a binding on the client.

適用於