CommandStateTryGetValue Method
Gets the state element associated with the specified key.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public bool TryGetValue(
string key,
out Object?? value
)
Public Function TryGetValue (
key As String,
<OutAttribute> ByRef value As Object
) As Boolean
public:
virtual bool TryGetValue(
String^ key,
[OutAttribute] Object^% value
) sealed
abstract TryGetValue :
key : string *
value : Object byref -> bool
override TryGetValue :
key : string *
value : Object byref -> bool
- key String
- The key whose value to get.
- value Object
- 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.
Boolean if the
CommandState contains an element with the specified
key; otherwise,
.
IReadOnlyDictionaryTKey, TValueTryGetValue(TKey, TValue)IDictionaryTKey, TValueTryGetValue(TKey, TValue)