Export (0) Print
Expand All

ReflectionModelServices Class

Provides extension methods to create and retrieve reflection-based parts.

System.Object
  System.ComponentModel.Composition.ReflectionModel.ReflectionModelServices

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

'Declaration
Public NotInheritable Class ReflectionModelServices

The ReflectionModelServices type exposes the following members.

  NameDescription
Public methodStatic memberCreateExportDefinitionCreates an export definition from the specified member, with the specified contract name, metadata, and origin.
Public methodStatic memberCreateImportDefinition(Lazy(Of ParameterInfo), String, String, IEnumerable(Of KeyValuePair(Of String, Type)), ImportCardinality, CreationPolicy, ICompositionElement)Creates an import definition for the specified parameter, with the specified contract name, type identity, required metadata, cardinality, creation policy, and origin.
Public methodStatic memberCreateImportDefinition(LazyMemberInfo, String, String, IEnumerable(Of KeyValuePair(Of String, Type)), ImportCardinality, Boolean, CreationPolicy, ICompositionElement)Creates an import definition for the specified member, with the specified contract name, type identity, required metadata, cardinality, recomposition policy, creation policy, and origin.
Public methodStatic memberCreatePartDefinitionCreates a part definition with the specified part type, imports, exports, metadata, and origin.
Public methodStatic memberGetExportingMemberGets the exporting member from a specified export definition.
Public methodStatic memberGetImportingMemberGets the importing member from a specified import definition.
Public methodStatic memberGetImportingParameterGets the importing parameter from a specified import definition.
Public methodStatic memberGetPartTypeGets the type of a part from a specified part definition.
Public methodStatic memberIsDisposalRequiredDetermines whether the specified part requires disposal.
Public methodStatic memberIsImportingParameterDetermines whether an import definition represents a member or a parameter.
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.

Community Additions

ADD
Show:
© 2014 Microsoft