次の方法で共有


AdoDotNetDataReader.GetItem Method

Definition

Overloads

GetItem(Int32)

Retrieves an object instance representing the retrievable item as determined by an index into the current block of data.

GetItem(String)

Retrieves an object instance representing the retrievable item as specified by name.

GetItem(Int32)

Retrieves an object instance representing the retrievable item as determined by an index into the current block of data.

public:
 override System::Object ^ GetItem(int index);
public override object GetItem (int index);
override this.GetItem : int -> obj
Public Overrides Function GetItem (index As Integer) As Object

Parameters

index
Int32

Index into the current block of the data item at which to retrieve the item.

Returns

Returns an object representing the item at the specified index.

Exceptions

The index parameter is invalid.

Applies to

GetItem(String)

Retrieves an object instance representing the retrievable item as specified by name.

public:
 override System::Object ^ GetItem(System::String ^ name);
public override object GetItem (string name);
override this.GetItem : string -> obj
Public Overrides Function GetItem (name As String) As Object

Parameters

name
String

The name of the data item in the current block to retrieve.

Returns

Returns an object specified by name.

Exceptions

The name parameter is invalid.

Applies to