共用方式為


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

適用於