AttributedModelServices::CreatePartDefinition Method (Type^, ICompositionElement^)
.NET Framework (current version)
Creates a part definition with the specified type and origin.
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
public: static ComposablePartDefinition^ CreatePartDefinition( Type^ type, ICompositionElement^ origin )
Parameters
- type
-
Type:
System::Type^
The type of the definition.
- origin
-
Type:
System.ComponentModel.Composition.Primitives::ICompositionElement^
The origin of the definition.
Return Value
Type: System.ComponentModel.Composition.Primitives::ComposablePartDefinition^The new part definition.
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Show: