Edytuj

Udostępnij za pośrednictwem


PartBuilder Class

Definition

Represents a rule for decorating a set of matching types with Managed Extensibility Framework (MEF) attributes.

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

Methods

AddMetadata(String, Func<Type,Object>)

Adds metadata to the matching types.

AddMetadata(String, Object)

Adds metadata to the matching types.

Equals(Object)

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

(Inherited from Object)
Export()

Specifies that matching types should be exported.

Export(Action<ExportBuilder>)

Specifies that matching types should be exported, and provides configuration information for the resulting exports.

Export<T>()

Specifies that matching types should be exported by using the specified contract type.

Export<T>(Action<ExportBuilder>)

Specifies that matching types should be exported by using the specified contract type, and provides configuration information for the resulting exports.

ExportInterfaces()

Specifies that all the interfaces of the matching types should be exported.

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

ExportInterfaces(Predicate<Type>)

Specifies a set of interfaces on the matching types that should be exported.

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

ExportProperties(Predicate<PropertyInfo>)

Specifies a set of properties that should be exported on the matching types.

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

Specifies a set of properties on the matching types that should be exported by using the specified contract type, and provides configuration information for the resulting exports.

ExportProperties<T>(Predicate<PropertyInfo>)

Specifies a set of properties on the matching types that should be exported, by using the 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,ImportBuilder>)

Specifies a set of properties on the matching types that should be marked as imports, and provides configuration information for the resulting imports.

ImportProperties(Predicate<PropertyInfo>)

Specifies a set of properties on the matching types that should be imported.

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

Specifies a set of properties on the matching types that should be marked as imports by using the specified contract type, and provides configuration information for the resulting imports.

ImportProperties<T>(Predicate<PropertyInfo>)

Specifies a set of properties on the matching types that should be marked as imports using the specified contract type.

MemberwiseClone()

Creates a shallow copy of the current Object.

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

SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>)

Specifies the constructor that matching types should use as an importing constructor.

SetCreationPolicy(CreationPolicy)

Specifies the creation policy for matching types.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to