Share via


ScopeStorageDictionary.TryGetValue(Object, Object) Method

Definition

Gets the value that is associated with the specified key from the concatenated ScopeStorageDictionary and BaseScope objects.

public virtual bool TryGetValue (object key, out object value);
abstract member TryGetValue : obj * obj -> bool
override this.TryGetValue : obj * obj -> bool
Public Overridable Function TryGetValue (key As Object, ByRef value As Object) As Boolean

Parameters

key
Object

The key.

value
Object

When this method returns, if the key is found, contains the value that is associated with the specified key; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Returns

true if the concatenated ScopeStorageDictionary and BaseScope objects contain an element that has the specified key; otherwise, false.

Applies to