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.StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.