Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


ModelStateDictionary.TryGetValue(String, ModelState) Method

Definition

Attempts to gets the value that is associated with the specified key.

C#
public bool TryGetValue(string key, out System.Web.ModelBinding.ModelState value);

Parameters

key
String

The key of the value to get.

value
ModelState

When this method returns, contains the value that is associated with the specified key, if the key was found; otherwise, contains the default value for the type of this parameter. This parameter is passed uninitialized.

Returns

true if the dictionary contains an item that has the specified key; otherwise, false.

Applies to

Termék Verziók
.NET Framework 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