ContractAdapter.ContractToViewAdapter メソッド

定義

指定した場所に適切なホスト側アダプターが見つかった場合に、アドインのホスト ビューを取得します。

オーバーロード

名前 説明
ContractToViewAdapter<TView>(ContractHandle, PipelineStoreLocation)

適切なホスト側アダプターが、 PipelineStoreLocation 列挙体の値で指定された場所に見つかった場合に、アドインのホスト ビューを取得します。

ContractToViewAdapter<TView>(ContractHandle, String)

パスで指定された場所に適切なホスト側アダプターが見つかった場合に、アドインのホスト ビューを取得します。

ContractToViewAdapter<TView>(ContractHandle, PipelineStoreLocation)

適切なホスト側アダプターが、 PipelineStoreLocation 列挙体の値で指定された場所に見つかった場合に、アドインのホスト ビューを取得します。

public:
generic <typename TView>
 static TView ContractToViewAdapter(System::AddIn::Pipeline::ContractHandle ^ contract, System::AddIn::Hosting::PipelineStoreLocation location);
public static TView ContractToViewAdapter<TView>(System.AddIn.Pipeline.ContractHandle contract, System.AddIn.Hosting.PipelineStoreLocation location);
static member ContractToViewAdapter : System.AddIn.Pipeline.ContractHandle * System.AddIn.Hosting.PipelineStoreLocation -> 'View
Public Shared Function ContractToViewAdapter(Of TView) (contract As ContractHandle, location As PipelineStoreLocation) As TView

型パラメーター

TView

アドインのホスト ビューを定義する型。

パラメーター

contract
ContractHandle

共有するアドインによって使用されるコントラクトのハンドル。

location
PipelineStoreLocation

ホストのアプリケーション ベース。

返品

TView

共有されているアドインのホスト ビュー。

例外

location が無効です。

注釈

このシナリオでは、エンティティにはコントラクトのインスタンスがあり、特定のビューに適応したいと考えています。 このメソッドを使用して、システムにクエリを実行して、そのビューに変換するアダプターを検索してインスタンス化します。

適用対象

ContractToViewAdapter<TView>(ContractHandle, String)

パスで指定された場所に適切なホスト側アダプターが見つかった場合に、アドインのホスト ビューを取得します。

public:
generic <typename TView>
 static TView ContractToViewAdapter(System::AddIn::Pipeline::ContractHandle ^ contract, System::String ^ pipelineRoot);
public static TView ContractToViewAdapter<TView>(System.AddIn.Pipeline.ContractHandle contract, string pipelineRoot);
static member ContractToViewAdapter : System.AddIn.Pipeline.ContractHandle * string -> 'View
Public Shared Function ContractToViewAdapter(Of TView) (contract As ContractHandle, pipelineRoot As String) As TView

型パラメーター

TView

アドインのホスト ビューを定義する型。

パラメーター

contract
ContractHandle

共有するアドインによって使用されるコントラクトのハンドル。

pipelineRoot
String

アドイン ストアへのパス。

返品

TView

共有されているアドインのホスト ビュー。

注釈

このシナリオでは、エンティティにはコントラクトのインスタンスがあり、特定のビューに適応したいと考えています。 このメソッドを使用して、システムにクエリを実行して、そのビューに変換するアダプターを検索してインスタンス化します。

適用対象