Compartir a través de


TypeRegistrationLifetime Enumeration

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.

A set of values indicating what the lifetime of service implementations in the container should be.

Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel
Assembly: Microsoft.Practices.EnterpriseLibrary.Common.Silverlight (in Microsoft.Practices.EnterpriseLibrary.Common.Silverlight.dll) Version: 5.0.505.0

Syntax

public enum TypeRegistrationLifetime
'Declaration
Public Enumeration TypeRegistrationLifetime
public enum class TypeRegistrationLifetime

Members

Member name Value Description
Singleton 0 This implementation should be stored by the container and it should return the same object for each request.
Transient 1 A new instance should be returned for each request.

See Also

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