Share via


PartConventionBuilder<T> Class

Definition

Configures a type as a Managed Extensibility Framework (MEF) part, with strongly typed return values.

generic <typename T>
public ref class PartConventionBuilder : System::Composition::Convention::PartConventionBuilder
public class PartConventionBuilder<T> : System.Composition.Convention.PartConventionBuilder
type PartConventionBuilder<'T> = class
    inherit PartConventionBuilder
Public Class PartConventionBuilder(Of T)
Inherits PartConventionBuilder

Type Parameters

T

The type of the part.

Inheritance
PartConventionBuilder<T>

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.

(Inherited from PartConventionBuilder)
AddPartMetadata(String, Object)

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

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

(Inherited from PartConventionBuilder)
Export(Action<ExportConventionBuilder>)

Exports the part that has the specified configuration.

(Inherited from PartConventionBuilder)
Export<T>()

Exports the part that has the specified contract type.

(Inherited from PartConventionBuilder)
Export<T>(Action<ExportConventionBuilder>)

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

(Inherited from PartConventionBuilder)
ExportInterfaces()

Selects all interfaces on the part type to be exported.

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

(Inherited from PartConventionBuilder)
ExportInterfaces(Predicate<Type>)

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

(Inherited from PartConventionBuilder)
ExportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ExportConventionBuilder>)

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

(Inherited from PartConventionBuilder)
ExportProperties(Predicate<PropertyInfo>)

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

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

(Inherited from PartConventionBuilder)
ExportProperties<T>(Predicate<PropertyInfo>)

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

(Inherited from PartConventionBuilder)
ExportProperty(Expression<Func<T,Object>>, Action<ExportConventionBuilder>)

Exports a specified property with the specified configuration.

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

Exports a specified property.

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

Exports a specified property as a specified contract type by using the specified configuration.

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

Exports a specified property as a specified contract type.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
ImportProperties(Predicate<PropertyInfo>, Action<PropertyInfo,ImportConventionBuilder>)

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

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

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

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

(Inherited from PartConventionBuilder)
ImportProperties<T>(Predicate<PropertyInfo>)

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

(Inherited from PartConventionBuilder)
ImportProperty(Expression<Func<T,Object>>, Action<ImportConventionBuilder>)

Imports a specified property by using the specified configuration.

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

Imports a specified property.

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

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

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

Imports a specified property with the specified contract type.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
NotifyImportsSatisfied(Expression<Action<T>>)

Selects a method to be called when composition is complete.

NotifyImportsSatisfied(Predicate<MethodInfo>)

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

(Inherited from PartConventionBuilder)
SelectConstructor(Expression<Func<ParameterImportConventionBuilder,T>>)

Selects a constructor to be used in composition.

SelectConstructor(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)
SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>)

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

(Inherited from PartConventionBuilder)
Shared()

Marks the part as being shared throughout the entire composition.

(Inherited from PartConventionBuilder)
Shared(String)

Marks the part as being shared within the specified boundary.

(Inherited from PartConventionBuilder)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to