PartBuilder Class

.NET Framework (current version)
 

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

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

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

public class PartBuilder

NameDescription
System_CAPS_pubmethodAddMetadata(String, Func<Type, Object>)

Adds metadata to the matching types.

System_CAPS_pubmethodAddMetadata(String, Object)

Adds metadata to the matching types.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodExport()

Specifies that matching types should be exported.

System_CAPS_pubmethodExport(Action<ExportBuilder>)

Specifies that matching types should be exported, and provides configuration information for the resulting exports.

System_CAPS_pubmethodExport<T>()

Specifies that matching types should be exported by using the specified contract type.

System_CAPS_pubmethodExport<T>(Action<ExportBuilder>)

Specifies that matching types should be exported by using the specified contract type, and provides configuration information for the resulting exports.

System_CAPS_pubmethodExportInterfaces()

Specifies that all the interfaces of the matching types should be exported.

System_CAPS_pubmethodExportInterfaces(Predicate<Type>)

Specifies a set of interfaces on the matching types that should be exported.

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

System_CAPS_pubmethodExportProperties(Predicate<PropertyInfo>)

Specifies a set of properties that should be exported on the matching types.

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

System_CAPS_pubmethodExportProperties<T>(Predicate<PropertyInfo>)

Specifies a set of properties on the matching types that should be exported, by using the specified contract type.

System_CAPS_pubmethodExportProperties<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.

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodImportProperties(Predicate<PropertyInfo>)

Specifies a set of properties on the matching types that should be imported.

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

System_CAPS_pubmethodImportProperties<T>(Predicate<PropertyInfo>)

Specifies a set of properties on the matching types that should be marked as imports using the specified contract type.

System_CAPS_pubmethodImportProperties<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.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSelectConstructor(Func<ConstructorInfo[], ConstructorInfo>)

Specifies the constructor that matching types should use as an importing constructor.

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

System_CAPS_pubmethodSetCreationPolicy(CreationPolicy)

Specifies the creation policy for matching types.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 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.

Return to top
Show: