ModelStateDictionary.IsValidField(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The key.
Returns
true if the model-state dictionary contains a value that is associated with the specified key; otherwise, false.
Exceptions
The key
parameter is null.
Applies to
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ