Partager via


IVsDataReaderDescriptor.GetItemIndex Method

Retrieves the index corresponding to the specified data item name for the current data reader.

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

Syntax

'Declaration
Function GetItemIndex ( _
    name As String _
) As Integer
int GetItemIndex(
    string name
)
int GetItemIndex(
    String^ name
)
abstract GetItemIndex : 
        name:string -> int
function GetItemIndex(
    name : String
) : int

Parameters

  • name
    Type: System.String

    The date item name for which to retrieve the index.

Return Value

Type: System.Int32
The index corresponding to the specified data item name for the current data reader, or nulla null reference (Nothing in Visual Basic) if the item is not found.

.NET Framework Security

See Also

Reference

IVsDataReaderDescriptor Interface

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace