Share via


AttributedModelServices Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Inheritance Hierarchy

System.Object
  System.ComponentModel.Composition.AttributedModelServices

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class AttributedModelServices
public static class AttributedModelServices

The AttributedModelServices type exposes the following members.

Methods

  Name Description
Public methodStatic member AddExportedValue<T>(CompositionBatch, T) Creates a part from the specified value and adds it to the specified batch.
Public methodStatic member AddExportedValue<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 member AddPart Creates a composable part from the specified attributed object, and adds it to the specified composition batch.
Public methodStatic member ComposeExportedValue<T>(CompositionContainer, T) Creates a part from the specified value and composes it in the specified composition container.
Public methodStatic member 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.
Public methodStatic member ComposeParts Creates composable parts from an array of attributed objects and composes them in the specified composition container.
Public methodStatic member CreatePart Creates a composable part from an attributed object.
Public methodStatic member CreatePartDefinition(Type, ICompositionElement) Creates a part definition with the specified type and origin.
Public methodStatic member CreatePartDefinition(Type, ICompositionElement, Boolean) Creates a part definition with the specified type and origin.
Public methodStatic member GetContractName Gets a canonical contract name for the specified type.
Public methodStatic member GetMetadataView<TMetadataView> Gets a metadata view object from a dictionary of loose metadata.
Public methodStatic member GetTypeIdentity(MethodInfo) Gets the unique identifier for the specified method.
Public methodStatic member GetTypeIdentity(Type) Gets the unique identifier for the specified type.
Public methodStatic member SatisfyImportsOnce Composes the specified part by using the specified composition service, with recomposition disabled.

Top

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

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