NameScope.TryGetValue Method (String, Object)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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


Type: System.String

The key of the value to get.

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