NameScope.TryGetValue Method (String, Object)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the value associated with the specified key.

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

public bool TryGetValue(
	string key,
	out object value
)

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: