Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether there are any ModelError objects that are associated with or prefixed with the specified key.
Namespace: System.Web.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Function IsValidField ( _
key As String _
) As Boolean
'Usage
Dim instance As ModelStateDictionary
Dim key As String
Dim returnValue As Boolean
returnValue = instance.IsValidField(key)
public bool IsValidField(
string key
)
public:
bool IsValidField(
String^ key
)
member IsValidField :
key:string -> bool
public function IsValidField(
key : String
) : boolean
Parameters
- key
Type: System.String
The key.
Return Value
Type: System.Boolean
true if the model-state dictionary contains a value that is associated with the specified key; otherwise, false.