| WikiReadOnlyDictionaryTryGetValue Method |
This is preliminary documentation and is subject to change.
Gets the value associated with the specified key.
Namespace: WikiClientLibrary.InfrastructuresAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.8.0+bba8b7a48c3412988f4331f41f4164c670d73663
Syntax public bool TryGetValue(
string key,
out JToken value
)
Public Function TryGetValue (
key As String,
<OutAttribute> ByRef value As JToken
) As Boolean
Dim instance As WikiReadOnlyDictionary
Dim key As String
Dim value As JToken
Dim returnValue As Boolean
returnValue = instance.TryGetValue(key,
value)
public:
virtual bool TryGetValue(
String^ key,
[OutAttribute] JToken^% value
) sealed
abstract TryGetValue :
key : string *
value : JToken byref -> bool
override TryGetValue :
key : string *
value : JToken byref -> bool
Parameters
- key String
- The key whose value to get.
- value JToken
- When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
Return Value
Boolean if the object that implements
IDictionaryTKey, TValue contains an element with the specified key; otherwise,
.
Implements
IDictionaryTKey, TValueTryGetValue(TKey, TValue)Exceptions Exception | Condition |
---|
ArgumentNullException | key is . |
See Also