ReadOnlyDictionaryBaseTKey, TValueTryGetValue Method |
Determines if this dictionary contains a key equal to key. If so, the value
associated with that key is returned through the value parameter. This method must be overridden
in the derived class.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic abstract bool TryGetValue(
TKey key,
out TValue value
)
public:
virtual bool TryGetValue(
TKey key,
[OutAttribute] TValue% value
) abstract
Parameters
- key
- Type: TKey
The key to search for. - value
- Type: TValue
Returns the value associated with key, if true was returned.
Return Value
Type:
BooleanTrue if the dictionary contains key. False if the dictionary does not contain key.
Implements
IDictionaryTKey, TValueTryGetValue(TKey, TValue)
See Also