Partager via


CachedDataItemCollection Class

Definition

Represents a collection of CachedDataItem objects in a document-level customization that was created by using the Office development tools in Visual Studio.

public ref class CachedDataItemCollection sealed : System::Collections::ObjectModel::Collection<Microsoft::VisualStudio::Tools::Applications::CachedDataItem ^>
[System.Serializable]
public sealed class CachedDataItemCollection : System.Collections.ObjectModel.Collection<Microsoft.VisualStudio.Tools.Applications.CachedDataItem>
[<System.Serializable>]
type CachedDataItemCollection = class
    inherit Collection<CachedDataItem>
Public NotInheritable Class CachedDataItemCollection
Inherits Collection(Of CachedDataItem)
Inheritance
CachedDataItemCollection
Attributes

Remarks

Use the CachedData property to obtain a CachedDataItemCollection for an Office solution document that has cached data.

For more information about caching data in document-level customizations, see Caching Data and Accessing Data in Documents on the Server.

Properties

Item[String]

Gets the CachedDataItem identified by the name of the cached data object.

Methods

Add(String, String)

Adds the specified CachedDataItem to the end of the collection.

Contains(String)

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

GetEnumerator()

Returns a CachedDataItemEnumerator that can be used to iterate through the contents of the collection.

Remove(String)

Removes the specified CachedDataItem, identified by the name of the cached data object, from the collection.

Applies to