NameScope::TryGetValue Method (String^, Object^%)

.NET Framework (current version)
 

Gets the value associated with the specified key.

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public:
virtual bool TryGetValue(
	String^ key,
	[OutAttribute] Object^% value
) sealed

Parameters

key
Type: System::String^

The key of the value to get.

value
Type: System::Object^%

When this method returns, contains the value associated with the specified key, if the key is found; otherwise, a null object. This parameter is passed uninitialized.

Return Value

Type: System::Boolean

true if the NameScope contains a mapping for the name provided as key. Otherwise, false.

.NET Framework
Available since 4.0
Return to top
Show: