AttributedModelServices.SatisfyImportsOnce メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したパーツを作成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| SatisfyImportsOnce(ICompositionService, Object) |
再合成を無効にして、指定したコンポジション サービスを使用して、指定したパーツを作成します。 |
| SatisfyImportsOnce(ICompositionService, Object, ReflectionContext) |
指定したコンポジション サービスを使用し、再合成を無効にし、指定したリフレクション コンテキストを使用して、指定したパーツを作成します。 |
SatisfyImportsOnce(ICompositionService, Object)
再合成を無効にして、指定したコンポジション サービスを使用して、指定したパーツを作成します。
public:
[System::Runtime::CompilerServices::Extension]
static System::ComponentModel::Composition::Primitives::ComposablePart ^ SatisfyImportsOnce(System::ComponentModel::Composition::ICompositionService ^ compositionService, System::Object ^ attributedPart);
public static System.ComponentModel.Composition.Primitives.ComposablePart SatisfyImportsOnce(this System.ComponentModel.Composition.ICompositionService compositionService, object attributedPart);
static member SatisfyImportsOnce : System.ComponentModel.Composition.ICompositionService * obj -> System.ComponentModel.Composition.Primitives.ComposablePart
<Extension()>
Public Function SatisfyImportsOnce (compositionService As ICompositionService, attributedPart As Object) As ComposablePart
パラメーター
- compositionService
- ICompositionService
使用するコンポジション サービス。
- attributedPart
- Object
作成するパーツ。
返品
構成された部分。
例外
compositionService または attributedPart が null。
合成中にエラーが発生しました。 Errors には、発生したエラーのコレクションが含まれています。
注釈
通常の構成とは異なり、この方法で構成されたパーツは、カタログの背後compositionService が変更された場合でも有効であるとは限りません。
適用対象
SatisfyImportsOnce(ICompositionService, Object, ReflectionContext)
指定したコンポジション サービスを使用し、再合成を無効にし、指定したリフレクション コンテキストを使用して、指定したパーツを作成します。
public:
[System::Runtime::CompilerServices::Extension]
static System::ComponentModel::Composition::Primitives::ComposablePart ^ SatisfyImportsOnce(System::ComponentModel::Composition::ICompositionService ^ compositionService, System::Object ^ attributedPart, System::Reflection::ReflectionContext ^ reflectionContext);
public static System.ComponentModel.Composition.Primitives.ComposablePart SatisfyImportsOnce(this System.ComponentModel.Composition.ICompositionService compositionService, object attributedPart, System.Reflection.ReflectionContext reflectionContext);
static member SatisfyImportsOnce : System.ComponentModel.Composition.ICompositionService * obj * System.Reflection.ReflectionContext -> System.ComponentModel.Composition.Primitives.ComposablePart
<Extension()>
Public Function SatisfyImportsOnce (compositionService As ICompositionService, attributedPart As Object, reflectionContext As ReflectionContext) As ComposablePart
パラメーター
- compositionService
- ICompositionService
使用するコンポジション サービス。
- attributedPart
- Object
作成するパーツ。
- reflectionContext
- ReflectionContext
パーツのリフレクション コンテキスト。
返品
構成された部分。
例外
reflectionContext は nullです。
合成中にエラーが発生しました。 Errors には、発生したエラーのコレクションが含まれています。