ConventionBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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() |
Initializes a new instance of the ConventionBuilder class. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
ForType(Type) |
Creates a rule that applies to the specified type. |
ForType<T>() |
Creates a rule that applies to the specified generic type. |
ForTypesDerivedFrom(Type) |
Creates a rule that applies to all types that implement, or are derived from, the specified type. |
ForTypesDerivedFrom<T>() |
Creates a rule that applies to all types that implement, or are derived from, the specified generic type. |
ForTypesMatching(Predicate<Type>) |
Creates a rule that applies to types that match the specified predicate. |
ForTypesMatching<T>(Predicate<Type>) |
Creates a rule that applies to types that match the specified predicate and generic type. |
GetCustomAttributes(Type, MemberInfo) |
Retrieves the list of custom attributes applied to the specified member of the specified type. |
GetCustomAttributes(Type, ParameterInfo) |
Retrieves the list of custom attributes applied to the specified parameter of the specified type. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Applies to
.NET