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)

Syntax

'Declaration
Public MustOverride Function GetItemName ( _
    index As Integer _
) As String
public abstract string GetItemName(
    int index
)
public:
virtual String^ GetItemName(
    int index
) abstract
abstract GetItemName : 
        index:int -> string 
public abstract function GetItemName(
    index : int
) : String

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 nulla null reference (Nothing in Visual Basic) if no name exists.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The index parameter is invalid.

.NET Framework Security

See Also

Reference

DataReader Class

Microsoft.VisualStudio.Data Namespace

GetItemType