PartConventionBuilder Class

Definition

Configures a type as a Managed Extensibility Framework (MEF) part.

public ref class PartConventionBuilder
public class PartConventionBuilder
type PartConventionBuilder = class
Public Class PartConventionBuilder
Inheritance
PartConventionBuilder
Derived

Methods

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

AddPartMetadata(String, Object)

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

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Export()

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

Export(Action<ExportConventionBuilder>)

Exports the part that has the specified configuration.

Export<T>()

Exports the part that has the specified contract type.

Export<T>(Action<ExportConventionBuilder>)

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

ExportInterfaces()

Selects all interfaces on the part type to be exported.

ExportInterfaces(Predicate<Type>)

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

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

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

ExportProperties(Predicate<PropertyInfo>)

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

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

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

ExportProperties<T>(Predicate<PropertyInfo>)

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

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

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

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
ImportProperties(Predicate<PropertyInfo>)

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

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

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

ImportProperties<T>(Predicate<PropertyInfo>)

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

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

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

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
NotifyImportsSatisfied(Predicate<MethodInfo>)

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

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

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

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

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

Shared()

Marks the part as being shared throughout the entire composition.

Shared(String)

Marks the part as being shared within the specified boundary.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to