TryGetValue Method
See Also 
SourceCode.Caching Namespace > Cache<TKey,TValue> Class : TryGetValue Method



key
value

Glossary Item Box

Syntax

Visual Basic (Declaration)  
Public Function TryGetValue( _
   ByVal key As TKey, _
   ByRef value As TValue _
) As Boolean
Visual Basic (Usage) Copy Code
Dim instance As Cache(Of TKey,TValue)
Dim key As TKey
Dim value As TValue
Dim value As Boolean
 
value = instance.TryGetValue(key, value)
C#  
public bool TryGetValue( 
   TKey key,
   out TValue value
)
C++/CLI  
public:
bool TryGetValue( 
   TKey^ key,
   [Out] TValue^ value
) 

Parameters

key
value

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