TransactionFlowBindingElementImporter 類別

定義

匯入服務端點的異動原則 (WS-Policy 判斷提示),將實作繫結程序項目新增至用戶端的繫結程序,並且將異動流程屬性新增至服務 Proxy 的適當作業。Imports the transaction policy (WS-Policy assertions) of a service endpoint, adds implementing binding elements to the binding on the client, and transaction flow attributes to the appropriate operations on the service's proxy. 這個類別無法被繼承。This class cannot be inherited.

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

備註

服務端點必須已啟用交易流程,並且其方法必須流動交易。The service endpoint must have enabled transaction flow and its methods must flow transactions. 轉換的原則判斷提示全都遵照 WS-Policy 判斷提示標準。The converted policy assertions all adhere to the WS-PolicyAssertions standard.

當基礎結構建置已啟用異動流程之服務的 Proxy 時,主要會使用這個類別。This class is used mainly by the infrastructure when it builds a proxy for a service that is transaction-flow enabled. 呼叫 IPolicyImportExtension.ImportPolicy 方法會將 TransactionFlowBindingElement 執行個體新增至繫結項目的 PolicyConversionContext 集合,。Calling the IPolicyImportExtension.ImportPolicy method adds a TransactionFlowBindingElement instance to the PolicyConversionContext collection of binding elements. 這也會TransactionFlowAttribute在轉換內容的合約中出現Operations的集合上, 適當地加入實例。This also adds TransactionFlowAttribute instances, as appropriate, on the Operations collection present in the conversion context's contract.

建構函式

TransactionFlowBindingElementImporter()

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

匯入自訂原則判斷提示,並且新增實作繫結項目。Imports custom policy assertions and adds implementing binding elements. 這個方法無法被繼承。This method cannot be inherited.

適用於