ConventionBuilder ConventionBuilder ConventionBuilder ConventionBuilder Class

Definition

Provides methods for creating and configuring rules to define CLR objects as Managed Extensibility Framework (MEF) parts.

public ref class ConventionBuilder : System::Composition::Convention::AttributedModelProvider
public class ConventionBuilder : System.Composition.Convention.AttributedModelProvider
type ConventionBuilder = class
    inherit AttributedModelProvider
Public Class ConventionBuilder
Inherits AttributedModelProvider
Inheritance

Constructors

ConventionBuilder() ConventionBuilder() ConventionBuilder() ConventionBuilder()

Initializes a new instance of the ConventionBuilder class.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
ForType(Type) ForType(Type) ForType(Type) ForType(Type)

Creates a rule that applies to the specified type.

ForType<T>() ForType<T>() ForType<T>() ForType<T>()

Creates a rule that applies to the specified generic type.

ForTypesDerivedFrom(Type) ForTypesDerivedFrom(Type) ForTypesDerivedFrom(Type) ForTypesDerivedFrom(Type)

Creates a rule that applies to all types that implement, or are derived from, the specified type.

ForTypesDerivedFrom<T>() ForTypesDerivedFrom<T>() ForTypesDerivedFrom<T>() ForTypesDerivedFrom<T>()

Creates a rule that applies to all types that implement, or are derived from, the specified generic type.

ForTypesMatching(Predicate<Type>) ForTypesMatching(Predicate<Type>) ForTypesMatching(Predicate<Type>) ForTypesMatching(Predicate<Type>)

Creates a rule that applies to types that match the specified predicate.

ForTypesMatching<T>(Predicate<Type>) ForTypesMatching<T>(Predicate<Type>) ForTypesMatching<T>(Predicate<Type>) ForTypesMatching<T>(Predicate<Type>)

Creates a rule that applies to types that match the specified predicate and generic type.

GetCustomAttributes(Type, MemberInfo) GetCustomAttributes(Type, MemberInfo) GetCustomAttributes(Type, MemberInfo) GetCustomAttributes(Type, MemberInfo)

Retrieves the list of custom attributes applied to the specified member of the specified type.

GetCustomAttributes(Type, ParameterInfo) GetCustomAttributes(Type, ParameterInfo) GetCustomAttributes(Type, ParameterInfo) GetCustomAttributes(Type, ParameterInfo)

Retrieves the list of custom attributes applied to the specified parameter of the specified type.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to