Export (0) Print
Expand All

PartBuilder Class

.NET Framework 4.5

Represents a rule for decorating a set of matching types with Managed Extensibility Framework (MEF) attributes.

System.Object
  System.ComponentModel.Composition.Registration.PartBuilder
    System.ComponentModel.Composition.Registration.PartBuilder<T>

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

public class PartBuilder

The PartBuilder type exposes the following members.

  NameDescription
Public methodAddMetadata(String, Func<Type, Object>)Adds metadata to the matching types.
Public methodAddMetadata(String, Object)Adds metadata to the matching types.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodExport()Specifies that matching types should be exported.
Public methodExport(Action<ExportBuilder>)Specifies that matching types should be exported, and provides configuration information for the resulting exports.
Public methodExport<T>()Specifies that matching types should be exported by using the specified contract type.
Public methodExport<T>(Action<ExportBuilder>)Specifies that matching types should be exported by using the specified contract type, and provides configuration information for the resulting exports.
Public methodExportInterfaces()Specifies that all the interfaces of the matching types should be exported.
Public methodExportInterfaces(Predicate<Type>)Specifies a set of interfaces on the matching types that should be exported.
Public methodExportInterfaces(Predicate<Type>, Action<Type, ExportBuilder>)Specifies a set of interfaces on the matching types that should be exported, and provides configuration information for the resulting exports.
Public methodExportProperties(Predicate<PropertyInfo>)Specifies a set of properties that should be exported on the matching types.
Public methodExportProperties(Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>)Specifies a set of properties on the matching types that should be exported, and provides configuration information for those exports.
Public methodExportProperties<T>(Predicate<PropertyInfo>)Specifies a set of properties on the matching types that should be exported, by using the specified contract type.
Public methodExportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>)Specifies a set of properties on the matching types that should be exported by using the specified contract type, and provides configuration information for the resulting exports.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodImportProperties(Predicate<PropertyInfo>)Specifies a set of properties on the matching types that should be imported.
Public methodImportProperties(Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>)Specifies a set of properties on the matching types that should be marked as imports, and provides configuration information for the resulting imports.
Public methodImportProperties<T>(Predicate<PropertyInfo>)Specifies a set of properties on the matching types that should be marked as imports using the specified contract type.
Public methodImportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>)Specifies a set of properties on the matching types that should be marked as imports by using the specified contract type, and provides configuration information for the resulting imports.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSelectConstructor(Func<ConstructorInfo[], ConstructorInfo>)Specifies the constructor that matching types should use as an importing constructor.
Public methodSelectConstructor(Func<ConstructorInfo[], ConstructorInfo>, Action<ParameterInfo, ImportBuilder>)Specifies the constructor that matching types should use as an importing constructor, and provides configuration information for the resulting import.
Public methodSetCreationPolicySpecifies the creation policy for matching types.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

Supported in: 4.6, 4.5

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