Edit

Share via


AttributedModelServices Class

Definition

Contains helper methods for using the MEF attributed programming model with composition.

public ref class AttributedModelServices abstract sealed
public static class AttributedModelServices
type AttributedModelServices = class
Public Module AttributedModelServices
Inheritance
AttributedModelServices

Methods

AddExportedValue<T>(CompositionBatch, String, T)

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

AddExportedValue<T>(CompositionBatch, T)

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

AddPart(CompositionBatch, Object)

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

ComposeExportedValue<T>(CompositionContainer, String, T)

Creates a part from the specified object under the specified contract name and composes it in the specified composition container.

ComposeExportedValue<T>(CompositionContainer, T)

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

ComposeParts(CompositionContainer, Object[])

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

CreatePart(ComposablePartDefinition, Object)

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

CreatePart(Object)

Creates a composable part from the specified attributed object.

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<T>(ComposablePartDefinition)

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

GetContractName(Type)

Gets a canonical contract name for the specified type.

GetMetadataView<TMetadataView>(IDictionary<String,Object>)

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<T>(ComposablePartDefinition)

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

Imports<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.

Applies to