Share via


ContractAdapter 類別

定義

提供共用和重新配接增益集的方法。

public ref class ContractAdapter abstract sealed
public static class ContractAdapter
type ContractAdapter = class
Public Class ContractAdapter
繼承
ContractAdapter

備註

您可以使用這個類別,與另一部主機共用載入宏,而該載入宏沒有相同管線的另一個主機 (特別是另一部主機沒有相同主機檢視的載入宏) 。

如果您需要將啟動的載入宏從其主機檢視調整為合約,請使用 ViewToContractAdapter 方法。

如果您有合約的實例,而且必須將它轉換成主機檢視,請使用 ContractToViewAdapter 方法。

方法

ContractToViewAdapter<TView>(ContractHandle, PipelineStoreLocation)

如果在由 PipelineStoreLocation 列舉的值所指定之位置找到合適的主應用程式端配接器,則取得增益集的主應用程式檢視。

ContractToViewAdapter<TView>(ContractHandle, String)

如果在路徑指定之位置找到合適的主應用程式端配接器,則取得增益集的主應用程式檢視。

ViewToContractAdapter(Object)

取得提供之增益集主應用程式檢視的合約控制代碼。

適用於