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

'宣言
Function GetItemIndex ( _
    name As String _
) As Integer
'使用
Dim instance As IVsDataReaderDescriptor
Dim name As String
Dim returnValue As Integer

returnValue = instance.GetItemIndex(name)
int GetItemIndex(
    string name
)
int GetItemIndex(
    String^ name
)
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 a null reference (Nothing in Visual Basic) if the item is not found.

Permissions

See Also

Reference

IVsDataReaderDescriptor Interface

IVsDataReaderDescriptor Members

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace