Share via


CachedDataHostItemCollection.Contains Method (String)

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

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

Syntax

'Declaration
Public Function Contains ( _
    hostItemId As String _
) As Boolean
public bool Contains(
    string hostItemId
)

Parameters

  • hostItemId
    Type: System.String

    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 solution document that contains the cached data. The namespace and class name are separated by a period (.), for example, "ExcelWorkbook1.ThisWorkbook".

.NET Framework Security

See Also

Reference

CachedDataHostItemCollection Class

Contains Overload

Microsoft.VisualStudio.Tools.Applications Namespace