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

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

See Also

Reference

CachedDataHostItemCollection Class

CachedDataHostItemCollection Members

Microsoft.VisualStudio.Tools.Applications.Runtime Namespace