PartBuilder<T> Class

.NET Framework (current version)
 

Extends the PartBuilder class to allow the use of expressions to select members.

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<T> : PartBuilder

Type Parameters

T

The type of the target.

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

Adds metadata to the matching types.(Inherited from PartBuilder.)

System_CAPS_pubmethodAddMetadata(String, Object)

Adds metadata to the matching types.(Inherited from PartBuilder.)

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.(Inherited from PartBuilder.)

System_CAPS_pubmethodExport(Action<ExportBuilder>)

Specifies that matching types should be exported, and provides configuration information for the resulting exports.(Inherited from PartBuilder.)

System_CAPS_pubmethodExportInterfaces()

Specifies that all the interfaces of the matching types should be exported.(Inherited from PartBuilder.)

System_CAPS_pubmethodExportInterfaces(Predicate<Type>)

Specifies a set of interfaces on the matching types that should be exported.(Inherited from PartBuilder.)

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.(Inherited from PartBuilder.)

System_CAPS_pubmethodExportProperties(Predicate<PropertyInfo>)

Specifies a set of properties that should be exported on the matching types.(Inherited from PartBuilder.)

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.(Inherited from PartBuilder.)

System_CAPS_pubmethodExportProperty(Expression<Func<T, Object>>)

Specifies a property that should be exported.

System_CAPS_pubmethodExportProperty(Expression<Func<T, Object>>, Action<ExportBuilder>)

Specifies a property that should be exported, and provides configuration information for the resulting export.

System_CAPS_pubmethodExportProperty<TContract>(Expression<Func<T, Object>>)

Specifies a property that should be exported as the specified contract type.

System_CAPS_pubmethodExportProperty<TContract>(Expression<Func<T, Object>>, Action<ExportBuilder>)

Specifies a property that should be exported as the specified contract type, and provides configuration information for the resulting export.

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.(Inherited from PartBuilder.)

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.(Inherited from PartBuilder.)

System_CAPS_pubmethodImportProperty(Expression<Func<T, Object>>)

Specifies that a property should be imported.

System_CAPS_pubmethodImportProperty(Expression<Func<T, Object>>, Action<ImportBuilder>)

Specifies that a property should be imported, and provides configuration information for the resulting import.

System_CAPS_pubmethodImportProperty<TContract>(Expression<Func<T, Object>>)

Specifies that a property should be imported using the specified contract name.

System_CAPS_pubmethodImportProperty<TContract>(Expression<Func<T, Object>>, Action<ImportBuilder>)

Specifies that a property should be imported using the specified contract name, and provides configuration information for the resulting import.

System_CAPS_protmethodMemberwiseClone()

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

System_CAPS_pubmethodSelectConstructor(Expression<Func<ParameterImportBuilder, T>>)

Specifies the constructor that should be used as an importing constructor.

System_CAPS_pubmethodSelectConstructor(Func<ConstructorInfo[], ConstructorInfo>)

Specifies the constructor that matching types should use as an importing constructor.(Inherited from PartBuilder.)

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.(Inherited from PartBuilder.)

System_CAPS_pubmethodSetCreationPolicy(CreationPolicy)

Specifies the creation policy for matching types.(Inherited from PartBuilder.)

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: