Click or drag to resize

VariableCollectionTryGetValue Method

Gets the value associated with the specified key.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public bool TryGetValue(
	string key,
	out Object value
)

Parameters

key
Type: SystemString
The key whose value to get.
value
Type: SystemObject
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

Type: Boolean
if the object that implements IDictionaryTKey, TValue contains an element with the specified key; otherwise, .

Implements

IDictionaryTKey, TValueTryGetValue(TKey, TValue)
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is .
See Also