ObjectListItem.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過索引或名稱取得或設定指定的欄位。 這個 API 已經過時了。 如需如何開發 ASP.NET 行動應用程式的詳細資訊,請參閱 Mobile Apps & Sites with ASP.NET。
多載
| 名稱 | Description |
|---|---|
| Item[Int32] |
透過索引或名稱取得或設定指定的欄位。 這個 API 已經過時了。 如需如何開發 ASP.NET 行動應用程式的詳細資訊,請參閱 Mobile Apps & Sites with ASP.NET。 |
| Item[String] |
透過索引或名稱取得或設定指定的欄位。 這個 API 已經過時了。 如需如何開發 ASP.NET 行動應用程式的詳細資訊,請參閱 Mobile Apps & Sites with ASP.NET。 |
Item[Int32]
透過索引或名稱取得或設定指定的欄位。 這個 API 已經過時了。 如需如何開發 ASP.NET 行動應用程式的詳細資訊,請參閱 Mobile Apps & Sites with ASP.NET。
public:
property System::String ^ default[int] { System::String ^ get(int index); void set(int index, System::String ^ value); };
public string this[int index] { get; set; }
member this.Item(int) : string with get, set
Default Public Property Item(index As Integer) As String
參數
- index
- Int32
物件清單項目中欄位的索引,要取得或設定。
屬性值
欄位的值,且指定為 index。
另請參閱
適用於
Item[String]
透過索引或名稱取得或設定指定的欄位。 這個 API 已經過時了。 如需如何開發 ASP.NET 行動應用程式的詳細資訊,請參閱 Mobile Apps & Sites with ASP.NET。
public:
property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ key); void set(System::String ^ key, System::String ^ value); };
public string this[string key] { get; set; }
member this.Item(string) : string with get, set
Default Public Property Item(key As String) As String
參數
- key
- String
物件清單項目中要取得或設定的欄位名稱。
屬性值
欄位的值,且指定為 key。
備註
你必須匹配 Name 物件清單中某欄位的 or DataField 屬性。