TypeRegistration Members

Include Protected Members
Include Inherited Members

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

The TypeRegistration type exposes the following members.

Constructors

  Name Description
Public method TypeRegistration(LambdaExpression)
Initialize a new instance of the TypeRegistration class with a LambdaExpression as the model for injection.
Public method TypeRegistration(LambdaExpression, Type)
Initialize a new instance of the TypeRegistration class with a LambdaExpression as the model for injection.

Methods

  Name Description
Public methodStatic member DefaultName(Type)
Returns the default name for a type that will be returned if no name is otherwise specified.
Public methodStatic member DefaultName<TServiceType>()
Returns the default name for a type that will be returned if no name is otherwise specified.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  Name Description
Public property ConstructorParameters
Gets the ParameterValue instances describing values injected through the constructor.
Public property ImplementationType
Gets the Type for the registration entry.
Public property InjectedProperties
Gets the InjectedProperty instances describing values injected to properties.
Public property IsDefault
Gets truetrue (True in Visual Basic) if the registration is to be considered the default for the service type, falsefalse (False in Visual Basic) otherwise.
Public property IsPublicName
Is this registration for a type that is part of a public API? If true, configurators should not transform the name in any way. If false, this is an internal implementation class that users will not be resolving directly, and as such the name can be manipulated safely without interfering with the public API.
Public property LambdaExpression
Gets LambdaExpression representing the injection.
Public property Lifetime
The required lifetime for this service implementation.
Public property Name
Gets the name under which the entry should be registered to the container.
Public property NewExpressionBody
Returns the expression body representing the creation constructor call.
Public property ServiceType
Gets the Type for which the ImplementationType provides an implementation.

See Also

TypeRegistration Class

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel Namespace