Прочетете на английски Редактиране

Споделяне чрез


NameScope.TryGetValue(String, Object) Method

Definition

Gets the value associated with the specified key.

C#
public bool TryGetValue(string key, out object value);

Parameters

key
String

The key of the value to get.

value
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.

Returns

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

Applies to

Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10