CachedDataHostItemCollection.Contains Method (2003 System)

Returns a value that indicates whether the collection contains the specified CachedDataHostItem.

Namespace:  Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly:  Microsoft.VisualStudio.Tools.Applications.Runtime (in Microsoft.VisualStudio.Tools.Applications.Runtime.dll)

Syntax

'Declaration
Public Function Contains ( _
    hostItemId As String _
) As Boolean
'Usage
Dim instance As CachedDataHostItemCollection
Dim hostItemId As String
Dim returnValue As Boolean

returnValue = instance.Contains(hostItemId)
public bool Contains(
    string hostItemId
)

Parameters

  • hostItemId
    Type: System.String
    A string that specifies the namespace and class in which the source data is cached.

Return Value

Type: System.Boolean
true if the collection contains a CachedDataHostItem that corresponds to the hostItemId parameter; otherwise, false.

Remarks

The hostItemId parameter is a string that specifies the namespace and the class in the Microsoft Visual Studio Tools for the Microsoft Office system (version 3.0) solution document that contains the cached data. The namespace and class name are separated by a period (.), for example, "ExcelWorkbook1.ThisWorkbook".

Permissions

See Also

Reference

CachedDataHostItemCollection Class

CachedDataHostItemCollection Members

Microsoft.VisualStudio.Tools.Applications.Runtime Namespace