AttributedModelServices.CreatePartDefinition Method (Type, ICompositionElement, Boolean)

 

Creates a part definition with the specified type and origin.

Namespace:   System.ComponentModel.Composition
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public static ComposablePartDefinition CreatePartDefinition(
	Type type,
	ICompositionElement origin,
	bool ensureIsDiscoverable
)

Parameters

type
Type: System.Type

The type of the definition.

origin
Type: System.ComponentModel.Composition.Primitives.ICompositionElement

The origin of the definition.

ensureIsDiscoverable
Type: System.Boolean

A value indicating whether or not the new definition should be discoverable.

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Return to top
Show: