ModelStateDictionary.Item[String] 属性

定义

获取或设置与指定的键关联的值。

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

键。

属性值

ModelState

项。

实现

适用于