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)

public ref class ReflectionModelServices abstract sealed

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<ParameterInfo>, String, String, IEnumerable<KeyValuePair<String, Type>>, ImportCardinality, CreationPolicy, ICompositionElement)Creates an import definition for the specified parameter by using the specified contract name, type identity, import metadata, cardinality, and creation policy.
Public methodStatic memberCreateImportDefinition(LazyMemberInfo, String, String, IEnumerable<KeyValuePair<String, Type>>, ImportCardinality, Boolean, CreationPolicy, ICompositionElement)Creates an import definition for the specified member by using the specified contract name, type identity, import metadata, cardinality, recomposition policy, and creation policy.
Public methodStatic memberCreateImportDefinition(Lazy<ParameterInfo>, String, String, IEnumerable<KeyValuePair<String, Type>>, ImportCardinality, CreationPolicy, IDictionary<String, Object>, Boolean, ICompositionElement)Creates an import definition for the specified parameter by using the specified contract name, type identity, import and contract metadata, cardinality, and creation policy.
Public methodStatic memberCreateImportDefinition(LazyMemberInfo, String, String, IEnumerable<KeyValuePair<String, Type>>, ImportCardinality, Boolean, CreationPolicy, IDictionary<String, Object>, Boolean, ICompositionElement)Creates an import definition for the specified member by using the specified contract name, type identity, import and contract metadata, cardinality, recomposition policy, and creation policy.
Public methodStatic memberCreateImportDefinition(LazyMemberInfo, String, String, IEnumerable<KeyValuePair<String, Type>>, ImportCardinality, Boolean, Boolean, CreationPolicy, IDictionary<String, Object>, Boolean, ICompositionElement)Creates an import definition for the specified member by using the specified contract name, type identity, import and contract metadata, cardinality, recomposition policy, and creation policy.
Public methodStatic memberCreatePartDefinitionCreates a part definition with the specified part type, imports, exports, metadata, and origin.
Public methodStatic memberGetExportFactoryProductImportDefinitionReturns a representation of an import definition as an export factory product.
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 memberIsExportFactoryImportDefinitionIndicates whether a specified import definition represents an export factory (ExportFactory<T> or ExportFactory<T, TMetadata> object).
Public methodStatic memberIsImportingParameterDetermines whether an import definition represents a member or a parameter.
Public methodStatic memberTryMakeGenericPartDefinitionIndicates whether a generic part definition can be specialized with the provided parameters.
Top

.NET Framework

Supported in: 4.5.3, 4

.NET Framework Client Profile

Supported in: 4

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