Share via


CacheManager.Item Property

Returns the item identified by the provided key

Namespace:  Microsoft.Practices.EnterpriseLibrary.Caching
Assembly:  Microsoft.Practices.EnterpriseLibrary.Caching (in Microsoft.Practices.EnterpriseLibrary.Caching.dll)

Syntax

'Declaration
Public ReadOnly Property Item ( _
    key As String _
) As Object
public Object Item[
    string key
] { get; }
public:
virtual property Object^ Item[String^ key] {
    Object^ get (String^ key) sealed;
}
JScript does not support indexed properties.

Parameters

Implements

ICacheManager.Item[String]

Remarks

The CacheManager can be configured to use different storage mechanisms in which to store the cache items. Each of these storage mechanisms can throw exceptions particular to their own implementations.

Exceptions

Exception Condition
System.ArgumentNullException Provided key is null
System.ArgumentException Provided key is an empty string

See Also

CacheManager Class

Microsoft.Practices.EnterpriseLibrary.Caching Namespace