Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
'Declaration
<ExtensionAttribute> _
Public NotInheritable Class AttributedModelServices

The AttributedModelServices type exposes the following members.

  NameDescription
Public methodStatic memberAddExportedValue(Of T)(CompositionBatch, T)Creates a part from the specified value and adds it to the specified batch.
Public methodStatic memberAddExportedValue(Of 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 memberAddPartCreates a composable part from the specified attributed object, and adds it to the specified composition batch.
Public methodStatic memberComposeExportedValue(Of T)(CompositionContainer, T)Creates a part from the specified value and composes it in the specified composition container.
Public methodStatic memberComposeExportedValue(Of 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 memberComposePartsCreates composable parts from an array of attributed objects and composes them in the specified composition container.
Public methodStatic memberCreatePartCreates a composable part from an attributed object.
Public methodStatic memberCreatePartDefinition(Type, ICompositionElement)Creates a part definition with the specified type and origin.
Public methodStatic memberCreatePartDefinition(Type, ICompositionElement, Boolean)Creates a part definition with the specified type and origin.
Public methodStatic memberGetContractNameGets a canonical contract name for the specified type.
Public methodStatic memberGetMetadataView(Of TMetadataView)Gets a metadata view object from a dictionary of loose metadata.
Public methodStatic memberGetTypeIdentity(MethodInfo)Gets the unique identifier for the specified method.
Public methodStatic memberGetTypeIdentity(Type)Gets the unique identifier for the specified type.
Public methodStatic memberSatisfyImportsOnceComposes the specified part by using the specified composition service, with recomposition disabled.
Top

Silverlight

Supported in: 5, 4

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.