共用方式為


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 鍵。

適用於