Partager via


CachedData Class

Contains all of the data that is cached in the data island of a document-level customization.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Tools.Applications.CachedDataNodeBase
    Microsoft.VisualStudio.Tools.Applications.CachedData

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

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public NotInheritable Class CachedData _
    Inherits CachedDataNodeBase
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class CachedData : CachedDataNodeBase

The CachedData type exposes the following members.

Properties

  Name Description
Public property HostItems Gets the collection of CachedDataHostItem objects that are in the data cache.

Top

Methods

  Name Description
Public method Clear Removes the cached data from the document of an Office solution and removes the description of the cached data from the cached data manifest.
Public method ClearData Removes the cached data from the document of an Office solution.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method FromXml Reconstructs the cached data in the Office solution from an XML string.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method ToXml Returns the serialized XML representation of the data that is cached in a document of an Office solution.

Top

Remarks

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Tools.Applications Namespace

Other Resources

Managing Documents on a Server by Using the ServerDocument Class

Caching Data

Accessing Data in Documents on the Server