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 | |
---|---|---|
AddExportedValue<T>(CompositionBatch, T) | Creates a part from the specified value and adds it to the specified batch. | |
AddExportedValue<T>(CompositionBatch, String, T) | Creates a part from the specified value and adds it to the specified batch with the specified contract name. | |
AddPart | Creates a composable part from the specified attributed object, and adds it to the specified composition batch. | |
ComposeExportedValue<T>(CompositionContainer, T) | Creates a part from the specified value and composes it in the specified composition container. | |
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. | |
ComposeParts | Creates composable parts from an array of attributed objects and composes them in the specified composition container. | |
CreatePart | Creates a composable part from an attributed object. | |
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. | |
GetContractName | Gets a canonical contract name for the specified type. | |
GetMetadataView<TMetadataView> | 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. | |
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.