ReflectionModelServices Class
Collapse the table of content
Expand the table of content

ReflectionModelServices Class

 

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

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

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

[SecurityCriticalAttribute]
public static class ReflectionModelServices

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateExportDefinition(LazyMemberInfo, String, Lazy<IDictionary<String, Object>>, ICompositionElement)

Creates an export definition from the specified member, with the specified contract name, metadata, and origin.

System_CAPS_pubmethodSystem_CAPS_staticCreateImportDefinition(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.

System_CAPS_pubmethodSystem_CAPS_staticCreateImportDefinition(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.

System_CAPS_pubmethodSystem_CAPS_staticCreateImportDefinition(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.

System_CAPS_pubmethodSystem_CAPS_staticCreateImportDefinition(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.

System_CAPS_pubmethodSystem_CAPS_staticCreateImportDefinition(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.

System_CAPS_pubmethodSystem_CAPS_staticCreatePartDefinition(Lazy<Type>, Boolean, Lazy<IEnumerable<ImportDefinition>>, Lazy<IEnumerable<ExportDefinition>>, Lazy<IDictionary<String, Object>>, ICompositionElement)

Creates a part definition with the specified part type, imports, exports, metadata, and origin.

System_CAPS_pubmethodSystem_CAPS_staticGetExportFactoryProductImportDefinition(ImportDefinition)

Returns a representation of an import definition as an export factory product.

System_CAPS_pubmethodSystem_CAPS_staticGetExportingMember(ExportDefinition)

Gets the exporting member from a specified export definition.

System_CAPS_pubmethodSystem_CAPS_staticGetImportingMember(ImportDefinition)

Gets the importing member from a specified import definition.

System_CAPS_pubmethodSystem_CAPS_staticGetImportingParameter(ImportDefinition)

Gets the importing parameter from a specified import definition.

System_CAPS_pubmethodSystem_CAPS_staticGetPartType(ComposablePartDefinition)

Gets the type of a part from a specified part definition.

System_CAPS_pubmethodSystem_CAPS_staticIsDisposalRequired(ComposablePartDefinition)

Determines whether the specified part requires disposal.

System_CAPS_pubmethodSystem_CAPS_staticIsExportFactoryImportDefinition(ImportDefinition)

Indicates whether a specified import definition represents an export factory (ExportFactory<T> or ExportFactory<T, TMetadata> object).

System_CAPS_pubmethodSystem_CAPS_staticIsImportingParameter(ImportDefinition)

Determines whether an import definition represents a member or a parameter.

System_CAPS_pubmethodSystem_CAPS_staticTryMakeGenericPartDefinition(ComposablePartDefinition, IEnumerable<Type>, ComposablePartDefinition)

Indicates whether a generic part definition can be specialized with the provided parameters.

.NET Framework
Available since 4.0
Silverlight
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft