DataReader.GetItemIndex Method

Returns the index corresponding to the specified item name in the block of data.

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

Syntax

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

returnValue = instance.GetItemIndex(name)
public virtual int GetItemIndex(
    string name
)
public:
virtual int GetItemIndex(
    String^ name
)
public function GetItemIndex(
    name : String
) : int

Parameters

  • name
    Type: System.String

    The name of the item to get the index for.

Return Value

Type: System.Int32

An integer value representing the item index.

Implements

IVsDataReaderDescriptor.GetItemIndex(String)

Permissions

See Also

Reference

DataReader Class

DataReader Members

Microsoft.VisualStudio.Data.Framework Namespace