IdentifierCollection.IVstaIdentifierCollection.IndexOf Method
Gets the index of the specified identifier.
Namespace: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel
Assembly: Microsoft.VisualStudio.Tools.Applications.ProgrammingModel (in Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.dll)
Syntax
'Declaration
Private Function IndexOf ( _
identifier As String _
) As Integer Implements IVstaIdentifierCollection.IndexOf
'Usage
Dim instance As IdentifierCollection
Dim identifier As String
Dim returnValue As Integer
returnValue = CType(instance, IVstaIdentifierCollection).IndexOf(identifier)
int IVstaIdentifierCollection.IndexOf(
string identifier
)
private:
virtual int IndexOf(
String^ identifier
) sealed = IVstaIdentifierCollection::IndexOf
JScript does not support explicit interface implementations.
Parameters
identifier
Type: System.StringThe identifier whose index value you want to retrieve.
Return Value
Type: System.Int32
The zero-based index of the specified item.
Implements
IVstaIdentifierCollection.IndexOf(String)
Remarks
This member is an explicit interface member implementation. It can be used only when the IdentifierCollection instance is cast to an IVstaIdentifierCollection interface.
.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.
See Also
Reference
Microsoft.VisualStudio.Tools.Applications.ProgrammingModel Namespace