ModelStateDictionary 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ModelStateDictionary 類別的新執行個體。
多載
ModelStateDictionary() |
初始化 ModelStateDictionary 類別的新執行個體。 |
ModelStateDictionary(ModelStateDictionary) |
使用現有字典集合,初始化 ModelStateDictionary 類別的新執行個體。 |
ModelStateDictionary()
初始化 ModelStateDictionary 類別的新執行個體。
public:
ModelStateDictionary();
public ModelStateDictionary ();
Public Sub New ()
適用於
ModelStateDictionary(ModelStateDictionary)
使用現有字典集合,初始化 ModelStateDictionary 類別的新執行個體。
public:
ModelStateDictionary(System::Web::ModelBinding::ModelStateDictionary ^ dictionary);
public ModelStateDictionary (System.Web.ModelBinding.ModelStateDictionary dictionary);
new System.Web.ModelBinding.ModelStateDictionary : System.Web.ModelBinding.ModelStateDictionary -> System.Web.ModelBinding.ModelStateDictionary
Public Sub New (dictionary As ModelStateDictionary)
參數
- dictionary
- ModelStateDictionary
字典。
例外狀況
dictionary
參數為 null
。