AttributedModelServices Class
.NET Framework 4.5
Contains helper methods for using the MEF attributed programming model with composition.
Namespace: System.ComponentModel.Composition
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
The AttributedModelServices type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() ![]() | AddExportedValue(Of T)(CompositionBatch, T) | Creates a part from the specified value and adds it to the specified batch. |
![]() ![]() ![]() | AddExportedValue(Of T)(CompositionBatch, String, T) | Creates a part from the specified value and adds it to the specified batch with the specified contract name. |
![]() ![]() ![]() | AddPart | Creates a composable part from the specified attributed object, and adds it to the specified composition batch. |
![]() ![]() ![]() | ComposeExportedValue(Of T)(CompositionContainer, T) | Creates a part from the specified value and composes it in the specified composition container. |
![]() ![]() ![]() | ComposeExportedValue(Of T)(CompositionContainer, String, T) | Creates a part from the specified object under the specified contract name and composes it in the specified composition container. |
![]() ![]() ![]() | ComposeParts | Creates composable parts from an array of attributed objects and composes them in the specified composition container. |
![]() ![]() ![]() | 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. |
![]() ![]() ![]() | CreatePartDefinition(Type, ICompositionElement) | Creates a part definition with the specified type and origin. |
![]() ![]() ![]() | CreatePartDefinition(Type, ICompositionElement, Boolean) | Creates a part definition with the specified type and origin. |
![]() ![]() | Exports(ComposablePartDefinition, Type) | Returns a value that indicates whether the specified part contains an export that matches the specified contract type. |
![]() ![]() | Exports(Of T)(ComposablePartDefinition) | Returns a value that indicates whether the specified part contains an export that matches the specified contract type. |
![]() ![]() ![]() | GetContractName | Gets a canonical contract name for the specified type. |
![]() ![]() ![]() | GetMetadataView(Of TMetadataView) | Gets a metadata view object from a dictionary of loose metadata. |
![]() ![]() ![]() | GetTypeIdentity(MethodInfo) | Gets the unique identifier for the specified method. |
![]() ![]() ![]() | GetTypeIdentity(Type) | Gets the unique identifier for the specified type. |
![]() ![]() | Imports(ComposablePartDefinition, Type) | Returns a value that indicates whether the specified part contains an import that matches the specified contract type. |
![]() ![]() | Imports(ComposablePartDefinition, Type, ImportCardinality) | Returns a value that indicates whether the specified part contains an import that matches the specified contract type and import cardinality. |
![]() ![]() | Imports(Of T)(ComposablePartDefinition) | Returns a value that indicates whether the specified part contains an import that matches the specified contract type. |
![]() ![]() | Imports(Of T)(ComposablePartDefinition, ImportCardinality) | Returns a value that indicates whether the specified part contains an import that matches the specified contract type and import cardinality. |
![]() ![]() ![]() | SatisfyImportsOnce(ICompositionService, Object) | Composes the specified part by using the specified composition service, with recomposition disabled. |
![]() ![]() | SatisfyImportsOnce(ICompositionService, Object, ReflectionContext) | Composes the specified part by using the specified composition service, with recomposition disabled and using the specified reflection context. |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.gif?cs-save-lang=1&cs-lang=vb)
.gif?cs-save-lang=1&cs-lang=vb)
.png?cs-save-lang=1&cs-lang=vb)