IVsDataReader.GetItem 方法

定义

重载

GetItem(Int32)

由类实现时,检索当前数据块中指定索引处的项的值。When implemented by a class, retrieves the value of the item at the specified index in the current block of data.

GetItem(String)

由类实现时,检索当前数据块中具有指定名称的数据项的值。When implemented by a class, retrieves the value of a data item with the specified name in the current block of data.

GetItem(Int32)

由类实现时,检索当前数据块中指定索引处的项的值。When implemented by a class, retrieves the value of the item at the specified index in the current block of data.

public:
 System::Object ^ GetItem(int index);
public object GetItem (int index);
abstract member GetItem : int -> obj
Public Function GetItem (index As Integer) As Object

参数

index
Int32

要在其中检索整数值的数据项的当前块中的索引。Index in the current block of the data item at which to retrieve the integer value.

返回

Object

当前数据块中指定索引处的整数值。An integer value from the specified index in the current block of data.

适用于

GetItem(String)

由类实现时,检索当前数据块中具有指定名称的数据项的值。When implemented by a class, retrieves the value of a data item with the specified name in the current block of data.

public:
 System::Object ^ GetItem(System::String ^ name);
public object GetItem (string name);
abstract member GetItem : string -> obj
Public Function GetItem (name As String) As Object

参数

name
String

当前块中要检索的数据项的名称。The name of the data item in the current block to retrieve.

返回

Object

具有指定名称的项的字符串值。The string value of the item with the specified name.

适用于