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

DataReader.GetItemName Method

Retrieves the name assigned to the data item at the specified index, if any.

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

public abstract string GetItemName(
	int index
)

Parameters

index
Type: System.Int32
The index of the data item for which to retrieve the name.

Return Value

Type: System.String
Returns the name assigned to the data item at the index specified by the index parameter, or null if no name exists.

ExceptionCondition
ArgumentOutOfRangeException

The index parameter is invalid.

Show: