We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

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)

public abstract Object GetItemType(
	int index,
	DataItemTypeFormat itemTypeFormat
)

Parameters

index
Type: System.Int32
Index of the data item for which to return data type.
itemTypeFormat
Type: Microsoft.VisualStudio.Data.DataItemTypeFormat
The format in which to return the data type information.

Return Value

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

ExceptionCondition
ArgumentOutOfRangeException

The index parameter is invalid.

Show: