This documentation is archived and is not being maintained.

AttributedModelServices Class

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

System.Object
  System.ComponentModel.Composition.AttributedModelServices

Namespace:  System.ComponentModel.Composition
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public static class AttributedModelServices

The AttributedModelServices type exposes the following members.

  NameDescription
Public methodStatic memberSupported by Portable Class LibraryAddExportedValue<T>(CompositionBatch, T)Creates a part from the specified value and adds it to the specified batch.
Public methodStatic memberSupported by Portable Class LibraryAddExportedValue<T>(CompositionBatch, String, T)Creates a part from the specified value and adds it to the specified batch with the specified contract name.
Public methodStatic memberSupported by Portable Class LibraryAddPartCreates a composable part from the specified attributed object, and adds it to the specified composition batch.
Public methodStatic memberSupported by Portable Class LibraryComposeExportedValue<T>(CompositionContainer, T)Creates a part from the specified value and composes it in the specified composition container.
Public methodStatic memberSupported by Portable Class LibraryComposeExportedValue<T>(CompositionContainer, String, T)Creates a part from the specified object under the specified contract name and composes it in the specified composition container.
Public methodStatic memberSupported by Portable Class LibraryComposePartsCreates composable parts from an array of attributed objects and composes them in the specified composition container.
Public methodStatic memberSupported by Portable Class LibraryCreatePartCreates a composable part from an attributed object.
Public methodStatic memberSupported by Portable Class LibraryCreatePartDefinition(Type, ICompositionElement)Creates a part definition with the specified type and origin.
Public methodStatic memberSupported by Portable Class LibraryCreatePartDefinition(Type, ICompositionElement, Boolean)Creates a part definition with the specified type and origin.
Public methodStatic memberSupported by Portable Class LibraryGetContractNameGets a canonical contract name for the specified type.
Public methodStatic memberSupported by Portable Class LibraryGetMetadataView<TMetadataView>Gets a metadata view object from a dictionary of loose metadata.
Public methodStatic memberSupported by Portable Class LibraryGetTypeIdentity(MethodInfo)Gets the unique identifier for the specified method.
Public methodStatic memberSupported by Portable Class LibraryGetTypeIdentity(Type)Gets the unique identifier for the specified type.
Public methodStatic memberSupported by Portable Class LibrarySatisfyImportsOnceComposes the specified part by using the specified composition service, with recomposition disabled.
Top

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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