Export (0) Print
Expand All

AttributedModelServices Class

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

System.Object
  System.ComponentModel.Composition.AttributedModelServices

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

[<AbstractClass>]
[<Sealed>]
type AttributedModelServices =  class end

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 LibraryCreatePart(Object)Creates a composable part from the specified attributed object.
Public methodStatic memberCreatePart(ComposablePartDefinition, Object)Creates a composable part from the specified attributed object, using the specified part definition.
Public methodStatic memberCreatePart(Object, ReflectionContext)Creates a composable part from the specified attributed object, using the specified reflection context.
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 memberExports(ComposablePartDefinition, Type)Returns a value that indicates whether the specified part contains an export that matches the specified contract type.
Public methodStatic memberExports(T)(ComposablePartDefinition)Returns a value that indicates whether the specified part contains an export that matches the specified contract type.
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 memberImports(ComposablePartDefinition, Type)Returns a value that indicates whether the specified part contains an import that matches the specified contract type.
Public methodStatic memberImports(ComposablePartDefinition, Type, ImportCardinality)Returns a value that indicates whether the specified part contains an import that matches the specified contract type and import cardinality.
Public methodStatic memberImports(T)(ComposablePartDefinition)Returns a value that indicates whether the specified part contains an import that matches the specified contract type.
Public methodStatic memberImports(T)(ComposablePartDefinition, ImportCardinality)Returns a value that indicates whether the specified part contains an import that matches the specified contract type and import cardinality.
Public methodStatic memberSupported by Portable Class LibrarySatisfyImportsOnce(ICompositionService, Object)Composes the specified part by using the specified composition service, with recomposition disabled.
Public methodStatic memberSatisfyImportsOnce(ICompositionService, Object, ReflectionContext)Composes the specified part by using the specified composition service, with recomposition disabled and using the specified reflection context.
Top

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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:
© 2014 Microsoft