ModelStateDictionary.Item[String] 属性
定义
获取或设置与指定的键关联的值。Gets or sets the value that is associated with the specified key.
public:
property System::Web::ModelBinding::ModelState ^ default[System::String ^] { System::Web::ModelBinding::ModelState ^ get(System::String ^ key); void set(System::String ^ key, System::Web::ModelBinding::ModelState ^ value); };
public System.Web.ModelBinding.ModelState this[string key] { get; set; }
member this.Item(string) : System.Web.ModelBinding.ModelState with get, set
Default Public Property Item(key As String) As ModelState
参数
- key
- String
键。The key.
属性值
项。The item.