DeviceFilterElementCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定集合中的項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites。
多載
Item[Int32] |
取得或設定指定之索引處的項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites。 |
Item[String] |
取得集合中的指定項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites。 |
備註
此屬性接受32位帶正負號的整數或字串做為自變數。 依字串指定專案時,只能 get
使用存取子。 不過,以整數指定專案時, get
可以使用 和 set
存取子。
Item[Int32]
取得或設定指定之索引處的項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites。
public:
property System::Web::Mobile::DeviceFilterElement ^ default[int] { System::Web::Mobile::DeviceFilterElement ^ get(int index); void set(int index, System::Web::Mobile::DeviceFilterElement ^ value); };
public System.Web.Mobile.DeviceFilterElement this[int index] { get; set; }
member this.Item(int) : System.Web.Mobile.DeviceFilterElement with get, set
Default Public Property Item(index As Integer) As DeviceFilterElement
參數
- index
- Int32
要取得或設定項目處的索引。
屬性值
在指定之索引處的項目。
備註
如果您在專案已經存在的索引上設定專案,則會移除現有的專案,然後將新專案指派給集合中的索引位置。
另請參閱
適用於
Item[String]
取得集合中的指定項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites。
public:
property System::Web::Mobile::DeviceFilterElement ^ default[System::String ^] { System::Web::Mobile::DeviceFilterElement ^ get(System::String ^ name); };
public System.Web.Mobile.DeviceFilterElement this[string name] { get; }
member this.Item(string) : System.Web.Mobile.DeviceFilterElement
Default Public ReadOnly Property Item(name As String) As DeviceFilterElement
參數
- name
- String
識別項目的字串。
屬性值
集合中的指定項目。
備註
屬性 DeviceFilterElementCollection.Item[] 只能取得專案。 若要設定專案,請使用 DeviceFilterElementCollection.Item[] 屬性,這兩者都可以設定和取得專案。