ModelStateDictionary.ClearValidationState(String) 方法

定义

ModelStateDictionary清除与作为参数传递的键匹配的条目。

public:
 void ClearValidationState(System::String ^ key);
public void ClearValidationState (string key);
member this.ClearValidationState : string -> unit
Public Sub ClearValidationState (key As String)

参数

key
String

要清除 的 ModelStateDictionary 键。

适用于