Share via


DataReader.GetItemType Method

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

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public MustOverride Function GetItemType ( _
    index As Integer, _
    itemTypeFormat As DataItemTypeFormat _
) As Object
'Usage
Dim instance As DataReader 
Dim index As Integer 
Dim itemTypeFormat As DataItemTypeFormat 
Dim returnValue As Object 

returnValue = instance.GetItemType(index, _
    itemTypeFormat)
public abstract Object GetItemType(
    int index,
    DataItemTypeFormat itemTypeFormat
)
public:
virtual Object^ GetItemType(
    int index, 
    DataItemTypeFormat itemTypeFormat
) abstract
public abstract function GetItemType(
    index : int, 
    itemTypeFormat : DataItemTypeFormat
) : Object

Parameters

  • index
    Type: System.Int32

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

Return Value

Type: System.Object
Returns the data type of items at the specified index in the specified format.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The index parameter is invalid.

.NET Framework Security

See Also

Reference

DataReader Class

DataReader Members

Microsoft.VisualStudio.Data Namespace

GetItemName