CachedDataHostItemCollection.IndexOf Method (2003 System)
Returns the index of the specified CachedDataHostItem in the collection.
Namespace: Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly: Microsoft.VisualStudio.Tools.Applications.Runtime (in Microsoft.VisualStudio.Tools.Applications.Runtime.dll)
Syntax
'Declaration
Public Function IndexOf ( _
hostItem As CachedDataHostItem _
) As Integer
'Usage
Dim instance As CachedDataHostItemCollection
Dim hostItem As CachedDataHostItem
Dim returnValue As Integer
returnValue = instance.IndexOf(hostItem)
public int IndexOf(
CachedDataHostItem hostItem
)
Parameters
- hostItem
Type: Microsoft.VisualStudio.Tools.Applications.Runtime.CachedDataHostItem
The CachedDataHostItem to locate in the collection.
Return Value
Type: System.Int32
The zero-based index of the first occurrence of hostItem in the collection; otherwise, -1 if hostItem is not in the collection.
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.
See Also
Reference
CachedDataHostItemCollection Class