共用方式為


DataReader.GetItemType(Int32, DataItemTypeFormat) Method

Definition

Retrieves the data type of a data item item, or items, at the specified index in a specified format.

public:
 abstract System::Object ^ GetItemType(int index, Microsoft::VisualStudio::Data::DataItemTypeFormat itemTypeFormat);
public abstract object GetItemType (int index, Microsoft.VisualStudio.Data.DataItemTypeFormat itemTypeFormat);
abstract member GetItemType : int * Microsoft.VisualStudio.Data.DataItemTypeFormat -> obj
Public MustOverride Function GetItemType (index As Integer, itemTypeFormat As DataItemTypeFormat) As Object

Parameters

index
Int32

Index of the data item for which to return data type.

itemTypeFormat
DataItemTypeFormat

The format in which to return the data type information.

Returns

Returns the data type of items at the specified index in the specified format.

Exceptions

The index parameter is invalid.

Applies to