Muokkaa

Jaa


AttributedModelServices.CreatePart Method

Definition

Creates a composable part.

Overloads

CreatePart(Object)

Creates a composable part from the specified attributed object.

CreatePart(ComposablePartDefinition, Object)

Creates a composable part from the specified attributed object, using the specified part definition.

CreatePart(Object, ReflectionContext)

Creates a composable part from the specified attributed object, using the specified reflection context.

CreatePart(Object)

Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs

Creates a composable part from the specified attributed object.

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

Parameters

attributedPart
Object

The attributed object.

Returns

The created part.

Applies to

CreatePart(ComposablePartDefinition, Object)

Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs

Creates a composable part from the specified attributed object, using the specified part definition.

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

Parameters

partDefinition
ComposablePartDefinition

The definition of the new part.

attributedPart
Object

The attributed object.

Returns

The created part.

Applies to

CreatePart(Object, ReflectionContext)

Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs

Creates a composable part from the specified attributed object, using the specified reflection context.

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

Parameters

attributedPart
Object

The attributed object.

reflectionContext
ReflectionContext

The reflection context for the part.

Returns

The created part.

Exceptions

reflectionContext is null.

Applies to