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
。