語言

DeviceFilterElementCollection.Item[] 屬性

定義

取得或設定一個物品進入收藏。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

多載

名稱 Description
Item[Int32]

取得或設定位於指定索引處的專案。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

Item[String]

從集合中取得指定的物品。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

備註

此性質可將 32 位元有符號整數或字串作為參數。 當以字串指定項目時,僅 get 可用存取器。 然而,當以整數指定項目時,與 getset 存取器同時可用。

Item[Int32]

取得或設定位於指定索引處的專案。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

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 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

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[] 這個屬性,它可以同時設定和取得一個項目。

另請參閱

適用於