Export (0) Print
Expand All

RegistrationBuilder Class

.NET Framework 4.5

Represents a reflection context that has associated conventions that describe rules for decorating entities with Managed Extensibility Framework (MEF) attributes.

System.Object
  System.Reflection.ReflectionContext
    System.Reflection.Context.CustomReflectionContext
      System.ComponentModel.Composition.Registration.RegistrationBuilder

Namespace:  System.ComponentModel.Composition.Registration
Assembly:  System.ComponentModel.Composition.Registration (in System.ComponentModel.Composition.Registration.dll)

public class RegistrationBuilder : CustomReflectionContext

The RegistrationBuilder type exposes the following members.

  NameDescription
Public methodRegistrationBuilderInitializes a new instance of the RegistrationBuilder class.
Top

  NameDescription
Protected methodAddPropertiesWhen overridden in a derived class, provides a collection of additional properties for the specified type, as represented in this reflection context. (Inherited from CustomReflectionContext.)
Protected methodCreateProperty(Type, String, Func<Object, Object>, Action<Object, Object>)Creates an object that represents a property to be added to a type, to be used with the AddProperties method. (Inherited from CustomReflectionContext.)
Protected methodCreateProperty(Type, String, Func<Object, Object>, Action<Object, Object>, IEnumerable<Attribute>, IEnumerable<Attribute>, IEnumerable<Attribute>)Creates an object that represents a property to be added to a type, to be used with the AddProperties method and using the specified custom attributes. (Inherited from CustomReflectionContext.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodForType(Type)Gets an object that represents a rule that applies to the specified type.
Public methodForType<T>()Gets a strongly typed object that represents a rule that applies to the specified type.
Public methodForTypesDerivedFrom(Type)Gets an object that represents a rule applicable to all types that implement the specified type, but not applicable to the specified type.
Public methodForTypesDerivedFrom<T>()Gets a strongly typed object that represents a rule applicable to all types that implement the specified type, but not applicable to the specified type.
Public methodForTypesMatching(Predicate<Type>)Gets an object that represents a rule applicable to all types that match the specified predicate.
Public methodForTypesMatching<T>(Predicate<Type>)Gets a strongly typed object that represents a rule applicable to all types that match the specified predicate.
Protected methodGetCustomAttributes(MemberInfo, IEnumerable<Object>)Provides a list of custom attributes for the specified member, as represented in this reflection context. (Overrides CustomReflectionContext.GetCustomAttributes(MemberInfo, IEnumerable<Object>).)
Protected methodGetCustomAttributes(ParameterInfo, IEnumerable<Object>)Provides a list of custom attributes for the specified parameter, as represented in this reflection context. (Overrides CustomReflectionContext.GetCustomAttributes(ParameterInfo, IEnumerable<Object>).)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetTypeForObjectGets the representation of the type of the specified object in this reflection context. (Inherited from ReflectionContext.)
Public methodMapAssemblyGets the representation, in this reflection context, of an assembly that is represented by an object from another reflection context. (Inherited from CustomReflectionContext.)
Public methodMapTypeGets the representation, in this reflection context, of a type represented by an object from another reflection context. (Inherited from CustomReflectionContext.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

Supported in: 4.6, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft