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
'Declaration
Public Overridable Function GetItemIndex ( _
name As String _
) As Integer
public virtual int GetItemIndex(
string name
)
public:
virtual int GetItemIndex(
String^ name
)
abstract GetItemIndex :
name:string -> int
override GetItemIndex :
name:string -> int
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)
Remarks
Notes to Inheritors
The base implementation returns -1. The derived class should override this method.
.NET Framework Security
- 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.