共用方式為


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

項目。

實作

適用於