PartConventionBuilder Class

.NET Framework (current version)
 

Configures a type as a part.

Namespace:   System.Composition.Convention
Assembly:  System.Composition.Convention (in System.Composition.Convention.dll)


public class PartConventionBuilder

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

Adds metadata that has the specified name and value to the part. The value is returned by a function that maps the part type to the metadata value.

System_CAPS_pubmethodAddPartMetadata(String, Object)

Adds metadata that has the specified name and value to the part.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExport()

Exports the part with its concrete type as the contract type.

System_CAPS_pubmethodExport(Action<ExportConventionBuilder>)

Exports the part that has the specified configuration.

System_CAPS_pubmethodExport<T>()

Exports the part that has the specified contract type.

System_CAPS_pubmethodExport<T>(Action<ExportConventionBuilder>)

Exports the part that has the specified contract type by using the specified configuration.

System_CAPS_pubmethodExportInterfaces()

Selects all interfaces on the part type to be exported.

System_CAPS_pubmethodExportInterfaces(Predicate<Type>)

Selects interfaces on the part type to be exported according to the specified filter.

System_CAPS_pubmethodExportInterfaces(Predicate<Type>, Action<Type, ExportConventionBuilder>)

Selects interfaces on the part type to be exported according to the specified filter, using the specified export configuration.

System_CAPS_pubmethodExportProperties(Predicate<PropertyInfo>)

Selects the properties on the part to export according the specified predicate.

System_CAPS_pubmethodExportProperties(Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>)

Selects the properties on the part to export according the specified predicate, using the specified export configuration.

System_CAPS_pubmethodExportProperties<T>(Predicate<PropertyInfo>)

Selects the properties on the part to export according the specified predicate, using the specified contract type.

System_CAPS_pubmethodExportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>)

Selects the properties on the part to export according the specified predicate, using the specified contract type and export configuration.

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodImportProperties(Predicate<PropertyInfo>)

Selects the properties on the part to import according to the specified predicate.

System_CAPS_pubmethodImportProperties(Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>)

Selects the properties on the part to import according the specified predicate, using the specified import configuration.

System_CAPS_pubmethodImportProperties<T>(Predicate<PropertyInfo>)

Selects the properties on the part to import according the specified predicate, using the specified contract type.

System_CAPS_pubmethodImportProperties<T>(Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>)

Selects the properties on the part to import according the specified predicate, using the specified contract type and import configuration.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodNotifyImportsSatisfied(Predicate<MethodInfo>)

Select methods to be used as a notification when composition is complete.

System_CAPS_pubmethodSelectConstructor(Func<IEnumerable<ConstructorInfo>, ConstructorInfo>)

Selects the constructor used to initialize the part by using the specified function.

System_CAPS_pubmethodSelectConstructor(Func<IEnumerable<ConstructorInfo>, ConstructorInfo>, Action<ParameterInfo, ImportConventionBuilder>)

Selects the constructor used to initialize the part by using the specified function and import configuration.

System_CAPS_pubmethodShared()

Marks the part as being shared throughout the entire composition.

System_CAPS_pubmethodShared(String)

Marks the part as being shared within the specified boundary.

System_CAPS_pubmethodToString()

(Inherited from Object.)

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: