AttributedModelServices.CreatePart メソッド

定義

コンポーザブル パーツを作成します。

オーバーロード

CreatePart(Object)

指定した属性付きオブジェクトからコンポーザブル パーツを作成します。

CreatePart(ComposablePartDefinition, Object)

指定した属性付きオブジェクトから、指定したパーツ定義を使用して、コンポーザブル パーツを作成します。

CreatePart(Object, ReflectionContext)

指定した属性付きオブジェクトから、指定したリフレクション コンテキストを使用して、コンポーザブル パーツを作成します。

CreatePart(Object)

ソース:
AttributedModelServices.cs
ソース:
AttributedModelServices.cs
ソース:
AttributedModelServices.cs

指定した属性付きオブジェクトからコンポーザブル パーツを作成します。

public:
 static System::ComponentModel::Composition::Primitives::ComposablePart ^ CreatePart(System::Object ^ attributedPart);
public static System.ComponentModel.Composition.Primitives.ComposablePart CreatePart (object attributedPart);
static member CreatePart : obj -> System.ComponentModel.Composition.Primitives.ComposablePart
Public Function CreatePart (attributedPart As Object) As ComposablePart

パラメーター

attributedPart
Object

属性付きオブジェクト。

戻り値

作成されたパーツ。

適用対象

CreatePart(ComposablePartDefinition, Object)

ソース:
AttributedModelServices.cs
ソース:
AttributedModelServices.cs
ソース:
AttributedModelServices.cs

指定した属性付きオブジェクトから、指定したパーツ定義を使用して、コンポーザブル パーツを作成します。

public:
 static System::ComponentModel::Composition::Primitives::ComposablePart ^ CreatePart(System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ partDefinition, System::Object ^ attributedPart);
public static System.ComponentModel.Composition.Primitives.ComposablePart CreatePart (System.ComponentModel.Composition.Primitives.ComposablePartDefinition partDefinition, object attributedPart);
static member CreatePart : System.ComponentModel.Composition.Primitives.ComposablePartDefinition * obj -> System.ComponentModel.Composition.Primitives.ComposablePart
Public Function CreatePart (partDefinition As ComposablePartDefinition, attributedPart As Object) As ComposablePart

パラメーター

partDefinition
ComposablePartDefinition

新しいパーツの定義。

attributedPart
Object

属性付きオブジェクト。

戻り値

作成されたパーツ。

適用対象

CreatePart(Object, ReflectionContext)

ソース:
AttributedModelServices.cs
ソース:
AttributedModelServices.cs
ソース:
AttributedModelServices.cs

指定した属性付きオブジェクトから、指定したリフレクション コンテキストを使用して、コンポーザブル パーツを作成します。

public:
 static System::ComponentModel::Composition::Primitives::ComposablePart ^ CreatePart(System::Object ^ attributedPart, System::Reflection::ReflectionContext ^ reflectionContext);
public static System.ComponentModel.Composition.Primitives.ComposablePart CreatePart (object attributedPart, System.Reflection.ReflectionContext reflectionContext);
static member CreatePart : obj * System.Reflection.ReflectionContext -> System.ComponentModel.Composition.Primitives.ComposablePart
Public Function CreatePart (attributedPart As Object, reflectionContext As ReflectionContext) As ComposablePart

パラメーター

attributedPart
Object

属性付きオブジェクト。

reflectionContext
ReflectionContext

パーツのリフレクション コンテキスト。

戻り値

作成されたパーツ。

例外

reflectionContextnull です。

適用対象