DeviceFilterElementCollection.Item[] 属性

定义

获取或设置集合中的项。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

重载

名称 说明
Item[Int32]

获取或设置指定索引处的项。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Item[String]

从集合中获取指定的项。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

注解

此属性采用 32 位带符号整数或字符串作为参数。 按字符串指定项时,只有 get 访问器可用。 但是,按整数指定项时, get 可以使用和 set 访问器。

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[] 可以设置和获取项的属性。

另请参阅

适用于