DeviceFilterElementCollection.Item[] 属性

定义

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

重载

Item[Int32]

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

Item[String]

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

注解

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

Item[Int32]

获取或设置指定索引处的项。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 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 移动应用程序的信息,请参阅 移动应用 & 具有 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[] 属性,该属性可以设置和获取项。

另请参阅

适用于