Share via


DataReader.GetItemType Method (Int32, DataItemTypeFormat)

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

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

Syntax

'Declaration
Public Overridable Function GetItemType ( _
    index As Integer, _
    itemTypeFormat As DataItemTypeFormat _
) As Object
public virtual Object GetItemType(
    int index,
    DataItemTypeFormat itemTypeFormat
)
public:
virtual Object^ GetItemType(
    int index, 
    DataItemTypeFormat itemTypeFormat
)
abstract GetItemType : 
        index:int * 
        itemTypeFormat:DataItemTypeFormat -> Object  
override GetItemType : 
        index:int * 
        itemTypeFormat:DataItemTypeFormat -> Object
public function GetItemType(
    index : int, 
    itemTypeFormat : DataItemTypeFormat
) : Object

Parameters

  • index
    Type: System.Int32

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

Return Value

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

Implements

IVsDataReaderDescriptor.GetItemType(Int32, DataItemTypeFormat)

Remarks

Notes to Inheritors

The base implementation throws a NotSupportedException. The derived class should override this method.

.NET Framework Security

See Also

Reference

DataReader Class

GetItemType Overload

Microsoft.VisualStudio.Data.Framework Namespace

GetItemType

GetItemName