다음을 통해 공유


Microsoft.VisualStudio.Tools.Applications Namespace

The Microsoft.VisualStudio.Tools.Applications namespace contains the ServerDocument class and a set of related cached data classes. These classes are intended to be used to manage aspects of documents and workbooks that are part of document-level customizations created by using Office development tools in Visual Studio,

Classes

CachedData

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

CachedDataHostItem

Contains all of the cached data objects that are declared in a single class in a document-level customization that was created by using the Office development tools in Visual Studio.

CachedDataHostItemCollection

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

CachedDataHostItemEnumerator

Iterates through a CachedDataHostItemCollection.

CachedDataItem

Represents a cached data object in a document-level customization that was created by using the Office development tools in Visual Studio.

CachedDataItemCollection

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

CachedDataItemEnumerator

Iterates through a CachedDataItemCollection.

CachedDataNodeBase

Provides the base class for cached data classes used in document-level customizations created by using the Office development tools in Visual Studio.

ServerDocument

Provides access to the cached data and customization information in a document or workbook that is part of a document-level customization created by using the Office development tools in Visual Studio.

Remarks

You can use the ServerDocument class to perform the following tasks:

  • Access and modify data in the data cache of a document or workbook that is part of a document-level customization.

  • Programmatically attach a customization assembly to a document or workbook at run time, or remove a customization assembly from a document or workbook.

  • Determine whether a document or workbook has a customization assembly or a data cache.

  • Get the URL of the deployment manifest that is associated with the document, or change the URL.

For more information, see Managing Documents on a Server by Using the ServerDocument Class.