AttributedModelServices.CreatePart Metódus

Definíció

Létrehoz egy összeállítható részt.

Túlterhelések

Name Description
CreatePart(Object)

Létrehoz egy összeállítható részt a megadott attribútumként megadott objektumból.

CreatePart(ComposablePartDefinition, Object)

Létrehoz egy összeállítható részt a megadott attribútum objektumból a megadott részdefiníció használatával.

CreatePart(Object, ReflectionContext)

Létrehoz egy összeírható részt a megadott attribútumú objektumból a megadott tükröződési környezet használatával.

CreatePart(Object)

Forrás:
AttributedModelServices.cs
Forrás:
AttributedModelServices.cs
Forrás:
AttributedModelServices.cs
Forrás:
AttributedModelServices.cs

Létrehoz egy összeállítható részt a megadott attribútumként megadott objektumból.

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

Paraméterek

attributedPart
Object

Az attribútummal rendelkező objektum.

Válaszok

A létrehozott rész.

A következőre érvényes:

CreatePart(ComposablePartDefinition, Object)

Forrás:
AttributedModelServices.cs
Forrás:
AttributedModelServices.cs
Forrás:
AttributedModelServices.cs
Forrás:
AttributedModelServices.cs

Létrehoz egy összeállítható részt a megadott attribútum objektumból a megadott részdefiníció használatával.

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

Paraméterek

partDefinition
ComposablePartDefinition

Az új rész definíciója.

attributedPart
Object

Az attribútummal rendelkező objektum.

Válaszok

A létrehozott rész.

A következőre érvényes:

CreatePart(Object, ReflectionContext)

Forrás:
AttributedModelServices.cs
Forrás:
AttributedModelServices.cs
Forrás:
AttributedModelServices.cs
Forrás:
AttributedModelServices.cs

Létrehoz egy összeírható részt a megadott attribútumú objektumból a megadott tükröződési környezet használatával.

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

Paraméterek

attributedPart
Object

Az attribútummal rendelkező objektum.

reflectionContext
ReflectionContext

A rész tükröződési környezete.

Válaszok

A létrehozott rész.

Kivételek

reflectionContext az null.

A következőre érvényes: