WebGridRow.Item[] 屬性

定義

多載

Item[Int32]

傳回 實例中指定索引處 WebGridRow 的值。

Item[String]

傳回實例中具有指定名稱的值 WebGridRow

Item[Int32]

傳回 實例中指定索引處 WebGridRow 的值。

public object this[int index] { get; }
member this.Item(int) : obj
Default Public ReadOnly Property Item(index As Integer) As Object

參數

index
Int32

列中要傳回之值的以零起始索引。

屬性值

位於指定索引處的值。

例外狀況

index 小於 0 或是大於或等於列中值的數目。

適用於

Item[String]

傳回實例中具有指定名稱的值 WebGridRow

public object this[string name] { get; }
member this.Item(string) : obj
Default Public ReadOnly Property Item(name As String) As Object

參數

name
String

列中要傳回之值的名稱。

屬性值

指定值。

例外狀況

name 為 Nothing 或空白。

name 指定的值不存在。

適用於