ModelStateDictionary.IsValidField(String) ModelStateDictionary.IsValidField(String) ModelStateDictionary.IsValidField(String) Method

Definition

Determines whether there are any ModelError objects that are associated with or prefixed with the specified key.

public bool IsValidField (string key);
member this.IsValidField : string -> bool
Public Function IsValidField (key As String) As Boolean

Parameters

key
String String String

The key.

Returns

true if the model-state dictionary contains a value that is associated with the specified key; otherwise, false.

Exceptions

Applies to