UserConfigurationDictionary.TryGetValue(Object, Object) Method

Definition

Gets the value that is associated with the specified key.

public:
 bool TryGetValue(System::Object ^ key, [Runtime::InteropServices::Out] System::Object ^ % value);
public bool TryGetValue (object key, out object value);
Public Function TryGetValue (key As Object, ByRef value As Object) As Boolean

Parameters

key
Object

A user configuration dictionary entry key.

value
Object

If the key is found, the value that is associated with the specified key; otherwise, a null reference (Nothing in Visual Basic).

Returns

true if the user configuration dictionary contains the key; otherwise, false.

Applies to