Share via


AdoDotNetReader.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.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

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

Parameters

  • index
    Type: System.Int32

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

Return Value

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

Implements

IVsDataReaderDescriptor.GetItemType(Int32, DataItemTypeFormat)

Remarks

This method throws a NotSupportedException exception if the specified data type format is not recognized as either a native type or a managed type.

.NET Framework Security

See Also

Reference

AdoDotNetReader Class

GetItemType Overload

Microsoft.VisualStudio.Data.Framework.AdoDotNet Namespace