Item Property
See Also 
SourceCode.Caching Namespace > Cache<TKey,TValue> Class : Item Property



key

Glossary Item Box

Syntax

Visual Basic (Declaration)  
Public Default Property Item( _
   ByVal key As TKey _
) As TValue
Visual Basic (Usage) Copy Code
Dim instance As Cache(Of TKey,TValue)
Dim key As TKey
Dim value As TValue
 
instance.Item(key) = value
 
value = instance.Item(key)
C#  
public TValue this[ 
   TKey key
]; {get; set;}
C++/CLI  
public:
property TValue^ default [TKey^] {
   TValue^ get(TKey^ key);
   void set (TKey^ key, TValue^ value);
}

Parameters

key

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also