DeviceFilterElementCollection.Item[] Property

Definition

Gets or sets an item in the collection. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Overloads

Item[Int32]

Gets or sets the item at the specified index. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Item[String]

Gets the specified item from the collection. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

Remarks

This property takes either a 32-bit signed integer or a string as an argument. When specifying the item by string, only the get accessor is available. However, when specifying the item by integer, both the get and set accessors are available.

Item[Int32]

Gets or sets the item at the specified index. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with 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

Parameters

index
Int32

The index at which to get or set the item.

Property Value

The item at the specified index.

Remarks

If you set an item at an index where an item already exists, the existing item is removed and the new item is then assigned to its index position in the collection.

See also

Applies to

Item[String]

Gets the specified item from the collection. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with 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

Parameters

name
String

The string that identifies the item.

Property Value

The specified item in the collection.

Remarks

The DeviceFilterElementCollection.Item[] property can only get an item. To set an item, use the DeviceFilterElementCollection.Item[] property, which can both set and get an item.

See also

Applies to