DataCache.Item Property
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Allows for the use of array notation to access cached objects.
Namespace: Microsoft.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)
Syntax
'Declaration
Public Default Property Item ( _
key As String _
) As Object
'Usage
Dim instance As DataCache
Dim key As String
Dim value As Object
value = instance(key)
instance(key) = value
public Object this [
string key
] { get; set; }
public:
property Object^ default [String^] {
Object^ get (String^ key);
void set (String^ key, Object^ value);
}
/** @property */
public Object get_Item (String key)
/** @property */
public void set_Item (String key, Object value)
Parameters
- key
The key that is used to save the cached object.
Property Value
A deserialized object that was saved to the cache cluster that uses the key.
Remarks
This method enables array notation. For more information about how to use the Item method, see the how to topics in Using Basic Cache Methods (Velocity).
See Also
Reference
DataCache Class
DataCache Members
Microsoft.Data.Caching Namespace