ModelStateDictionary 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ModelStateDictionary() |
初始化 ModelStateDictionary 類別的新執行個體。 |
ModelStateDictionary(ModelStateDictionary) |
使用從指定的 |
ModelStateDictionary(Int32) |
初始化 ModelStateDictionary 類別的新執行個體。 |
ModelStateDictionary()
初始化 ModelStateDictionary 類別的新執行個體。
public:
ModelStateDictionary();
public ModelStateDictionary ();
Public Sub New ()
適用於
ModelStateDictionary(ModelStateDictionary)
使用從指定的 dictionary
複製的值,初始化 類別的新實例 ModelStateDictionary 。
public:
ModelStateDictionary(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ dictionary);
public ModelStateDictionary (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary dictionary);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary
Public Sub New (dictionary As ModelStateDictionary)
參數
- dictionary
- ModelStateDictionary
要 ModelStateDictionary 從中複製值的 。
適用於
ModelStateDictionary(Int32)
初始化 ModelStateDictionary 類別的新執行個體。
public:
ModelStateDictionary(int maxAllowedErrors);
public ModelStateDictionary (int maxAllowedErrors);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary : int -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary
Public Sub New (maxAllowedErrors As Integer)
參數
- maxAllowedErrors
- Int32