Share via


ObjectListItem.Item[] 属性

定义

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

重载

Item[Int32]

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

Item[String]

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

Item[Int32]

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

public:
 property System::String ^ default[int] { System::String ^ get(int index); void set(int index, System::String ^ value); };
public string this[int index] { get; set; }
member this.Item(int) : string with get, set
Default Public Property Item(index As Integer) As String

参数

index
Int32

对象列表项中要获取或设置的字段的索引。

属性值

具有指定 index 的字段的值。

另请参阅

适用于

Item[String]

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

public:
 property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ key); void set(System::String ^ key, System::String ^ value); };
public string this[string key] { get; set; }
member this.Item(string) : string with get, set
Default Public Property Item(key As String) As String

参数

key
String

对象列表项中要获取或设置的字段的名称。

属性值

具有指定 key 的字段的值。

注解

必须匹配 Name 对象列表字段的 或 DataField 属性。

另请参阅

适用于