Share via


ICacheManager.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
ReadOnly Property Item ( _
    key As String _
) As Object
Object Item[
    string key
] { get; }
property Object^ Item[String^ key] {
    Object^ get (String^ key);
}
JScript does not support indexed properties.

Parameters

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

ICacheManager Interface

Microsoft.Practices.EnterpriseLibrary.Caching Namespace