Share via


CachedDataHostItemCollection.Contains(String) Method

Definition

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

public:
 bool Contains(System::String ^ hostItemId);
public bool Contains (string hostItemId);
override this.Contains : string -> bool
Public Function Contains (hostItemId As String) As Boolean

Parameters

hostItemId
String

The namespace and class in which the source data is cached.

Returns

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".

Applies to