| Visual Basic (Declaration) | |
|---|---|
Public Function TryGetValue( _ ByVal key As TKey, _ ByRef value As TValue _ ) As Boolean | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WeakRefDictionary(Of TKey,TValue) Dim key As TKey Dim value As TValue Dim value As Boolean value = instance.TryGetValue(key, value) | |
Parameters
- key
- The key
- value
- The value
Return Value
Returns true if the value was present; false otherwise.Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family