HeaderDictionary.TryGetValue Method
.NET Framework 4.5
Gets the value associated with the specified key.
Namespace: Microsoft.AspNet.SignalR.Client
Assembly: Microsoft.AspNet.SignalR.Client (in Microsoft.AspNet.SignalR.Client.dll)
Syntax
'Declaration
Public Function TryGetValue ( _
key As String, _
<OutAttribute> ByRef value As String _
) As Boolean
'Usage
Dim instance As HeaderDictionary
Dim key As String
Dim value As String
Dim returnValue As Boolean
returnValue = instance.TryGetValue(key, _
value)
public bool TryGetValue(
string key,
out string value
)
public:
virtual bool TryGetValue(
String^ key,
[OutAttribute] String^% value
) sealed
abstract TryGetValue :
key:string *
value:string byref -> bool
override TryGetValue :
key:string *
value:string byref -> bool
public final function TryGetValue(
key : String,
value : String
) : boolean
Parameters
- key
Type: System.String
The key of the value to get.
- value
Type: System.String%
When this method returns, contains the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter.
Return Value
Type: System.Boolean
true if the dictionary contains an element with the specified key; otherwise, false.
Implements
IDictionary<TKey, TValue>.TryGetValue(TKey, TValue%)