PartConventionBuilder(T) Class

PartConventionBuilder<T> Class

.NET Framework (current version)
 

Configures a type as a part, with strongly typed return values.

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


public class PartConventionBuilder<T> : PartConventionBuilder

Type Parameters

T

The type of the part.

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

System_CAPS_pubmethodAddPartMetadata(String, Object)

Adds metadata that has the specified name and value to the part.(Inherited from PartConventionBuilder.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExport()

Exports the part with its concrete type as the contract type.(Inherited from PartConventionBuilder.)

System_CAPS_pubmethodExport(Action<ExportConventionBuilder>)

Exports the part that has the specified configuration.(Inherited from PartConventionBuilder.)

System_CAPS_pubmethodExportInterfaces()

Selects all interfaces on the part type to be exported.(Inherited from PartConventionBuilder.)

System_CAPS_pubmethodExportInterfaces(Predicate<Type>)

Selects interfaces on the part type to be exported according to the specified filter.(Inherited from PartConventionBuilder.)

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

System_CAPS_pubmethodExportProperties(Predicate<PropertyInfo>)

Selects the properties on the part to export according the specified predicate.(Inherited from PartConventionBuilder.)

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

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

Exports a specified property.

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

Exports a specified property with the specified configuration.

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

Exports a specified property as a specified contract type.

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

Exports a specified property as a specified contract type by using the specified 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.(Inherited from PartConventionBuilder.)

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

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

Imports a specified property.

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

Imports a specified property by using the specified configuration.

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

Imports a specified property with the specified contract type.

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

Imports a specified property with the specified contract type and configuration.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodNotifyImportsSatisfied(Expression<Action<T>>)

Selects a method to be called when composition is complete.

System_CAPS_pubmethodNotifyImportsSatisfied(Predicate<MethodInfo>)

Select methods to be used as a notification when composition is complete.(Inherited from PartConventionBuilder.)

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

Selects a constructor to be used in composition.

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

Selects the constructor used to initialize the part by using the specified function. (Inherited from PartConventionBuilder.)

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

System_CAPS_pubmethodShared()

Marks the part as being shared throughout the entire composition.(Inherited from PartConventionBuilder.)

System_CAPS_pubmethodShared(String)

Marks the part as being shared within the specified boundary.(Inherited from PartConventionBuilder.)

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