ModelStateDictionary.ErrorCount 屬性

定義

取得透過 AddModelErrorTryAddModelError 加入這個 實例 ModelStateDictionary 的錯誤數目。

public:
 property int ErrorCount { int get(); };
public int ErrorCount { get; }
member this.ErrorCount : int
Public ReadOnly Property ErrorCount As Integer

屬性值

適用於