Share via


DataReader.GetItemName Method

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

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

Syntax

'Declaration
Public Overridable Function GetItemName ( _
    index As Integer _
) As String
public virtual string GetItemName(
    int index
)
public:
virtual String^ GetItemName(
    int index
)
abstract GetItemName : 
        index:int -> string  
override GetItemName : 
        index:int -> string
public 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
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.

Implements

IVsDataReaderDescriptor.GetItemName(Int32)

Remarks

Notes to Inheritors

The base implementation returns nulla null reference (Nothing in Visual Basic). The derived class should override this method.

.NET Framework Security

See Also

Reference

DataReader Class

Microsoft.VisualStudio.Data.Framework Namespace

GetItemType