AttributedModelServices Class

AttributedModelServices Class

 

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)

System.Object
  System.ComponentModel.Composition.AttributedModelServices

<ExtensionAttribute>
Public NotInheritable Class AttributedModelServices

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddExportedValue(Of T)(CompositionBatch, T)

Creates a part from the specified value and adds it to the specified batch.

System_CAPS_pubmethodSystem_CAPS_staticAddExportedValue(Of T)(CompositionBatch, String, T)

Creates a part from the specified value and adds it to the specified batch with the specified contract name.

System_CAPS_pubmethodSystem_CAPS_staticAddPart(CompositionBatch, Object)

Creates a composable part from the specified attributed object, and adds it to the specified composition batch.

System_CAPS_pubmethodSystem_CAPS_staticComposeExportedValue(Of T)(CompositionContainer, T)

Creates a part from the specified value and composes it in the specified composition container.

System_CAPS_pubmethodSystem_CAPS_staticComposeExportedValue(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.

System_CAPS_pubmethodSystem_CAPS_staticComposeParts(CompositionContainer, Object())

Creates composable parts from an array of attributed objects and composes them in the specified composition container.

System_CAPS_pubmethodSystem_CAPS_staticCreatePart(ComposablePartDefinition, Object)

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

System_CAPS_pubmethodSystem_CAPS_staticCreatePart(Object)

Creates a composable part from the specified attributed object.

System_CAPS_pubmethodSystem_CAPS_staticCreatePart(Object, ReflectionContext)

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

System_CAPS_pubmethodSystem_CAPS_staticCreatePartDefinition(Type, ICompositionElement)

Creates a part definition with the specified type and origin.

System_CAPS_pubmethodSystem_CAPS_staticCreatePartDefinition(Type, ICompositionElement, Boolean)

Creates a part definition with the specified type and origin.

System_CAPS_pubmethodSystem_CAPS_staticExports(ComposablePartDefinition, Type)

Returns a value that indicates whether the specified part contains an export that matches the specified contract type.

System_CAPS_pubmethodSystem_CAPS_staticExports(Of T)(ComposablePartDefinition)

Returns a value that indicates whether the specified part contains an export that matches the specified contract type.

System_CAPS_pubmethodSystem_CAPS_staticGetContractName(Type)

Gets a canonical contract name for the specified type.

System_CAPS_pubmethodSystem_CAPS_staticGetMetadataView(Of TMetadataView)(IDictionary(Of String, Object))

Gets a metadata view object from a dictionary of loose metadata.

System_CAPS_pubmethodSystem_CAPS_staticGetTypeIdentity(MethodInfo)

Gets the unique identifier for the specified method.

System_CAPS_pubmethodSystem_CAPS_staticGetTypeIdentity(Type)

Gets the unique identifier for the specified type.

System_CAPS_pubmethodSystem_CAPS_staticImports(ComposablePartDefinition, Type)

Returns a value that indicates whether the specified part contains an import that matches the specified contract type.

System_CAPS_pubmethodSystem_CAPS_staticImports(ComposablePartDefinition, Type, ImportCardinality)

Returns a value that indicates whether the specified part contains an import that matches the specified contract type and import cardinality.

System_CAPS_pubmethodSystem_CAPS_staticImports(Of T)(ComposablePartDefinition)

Returns a value that indicates whether the specified part contains an import that matches the specified contract type.

System_CAPS_pubmethodSystem_CAPS_staticImports(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.

System_CAPS_pubmethodSystem_CAPS_staticSatisfyImportsOnce(ICompositionService, Object)

Composes the specified part by using the specified composition service, with recomposition disabled.

System_CAPS_pubmethodSystem_CAPS_staticSatisfyImportsOnce(ICompositionService, Object, ReflectionContext)

Composes the specified part by using the specified composition service, with recomposition disabled and using the specified reflection context.

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft