AttributedModelServices Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

[<AbstractClass>]
[<Sealed>]
type AttributedModelServices = class end

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddExportedValue<'T>(CompositionBatch, 'T)

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

System_CAPS_pubmethodSystem_CAPS_staticAddExportedValue<'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<'T>(CompositionContainer, 'T)

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

System_CAPS_pubmethodSystem_CAPS_staticComposeExportedValue<'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<'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<'TMetadataView>(IDictionary<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<'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<'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: