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 | |
---|---|---|
TypeRegistration(LambdaExpression) |
Initialize a new instance of the TypeRegistration class with a LambdaExpression as the model for injection.
|
|
TypeRegistration(LambdaExpression, Type) |
Initialize a new instance of the TypeRegistration class with a LambdaExpression as the model for injection.
|
Methods
Name | Description | |
---|---|---|
DefaultName(Type) |
Returns the default name for a type that will be returned if no name is otherwise specified.
|
|
DefaultName<TServiceType>() |
Returns the default name for a type that will be returned if no name is otherwise specified.
|
|
Equals | (Inherited from Object.) | |
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.) |
|
GetHashCode |
Serves as a hash function for a particular type.
(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 | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
ConstructorParameters |
Gets the ParameterValue instances describing values injected through the constructor.
|
|
ImplementationType |
Gets the Type for the registration entry.
|
|
InjectedProperties |
Gets the InjectedProperty instances describing values injected to properties.
|
|
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.
|
|
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.
|
|
LambdaExpression |
Gets LambdaExpression representing the injection.
|
|
Lifetime |
The required lifetime for this service implementation.
|
|
Name |
Gets the name under which the entry should be registered to the container.
|
|
NewExpressionBody |
Returns the expression body representing the creation constructor call.
|
|
ServiceType |
Gets the Type for which the ImplementationType provides an implementation.
|
See Also
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel Namespace