TryGetValue Method

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 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:
© 2016 Microsoft