ObjectListItem.Item[] Property

Definition

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

Item[String]

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

Item[Int32]

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

C#
public string this[int index] { get; set; }

Parameters

index
Int32

The index of the field in the object list item to get or set.

Property Value

The value of the field with the specified index.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Item[String]

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

C#
public string this[string key] { get; set; }

Parameters

key
String

The name of the field in the object list item to get or set.

Property Value

The value of the field with the specified key.

Remarks

You must match the Name or DataField property of a field of the object list.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1