ServerDocument::CachedData Property

 

Gets a CachedData object that represents the cached data that is contained in the document.

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

public:
property CachedData^ CachedData {
	CachedData^ get();
}

Property Value

Type: Microsoft.VisualStudio.Tools.Applications::CachedData^

The cached data that is contained in the document.

The cached data in a document is stored in a hierarchy of objects. The CachedData object returned by this property is the first object in that hierarchy. For more information, see Accessing Data in Documents on the Server.

The following code example creates a new ServerDocument, and then uses the CachedData property to display the names of the objects in the data cache.

This example requires:

  • A console application project or some other non-Office project.

  • References to the following assemblies:

    • Microsoft.VisualStudio.Tools.Applications.ServerDocument.dll and Microsoft.VisualStudio.Tools.Applications.Runtime.dll (if the project targets the .NET Framework 4 or the .NET Framework 4.5).

      or

    • Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0.dll and Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll (if the project targets the .NET Framework 3.5).

  • Imports (for Visual Basic) or using (for C#) statements for Microsoft.VisualStudio.Tools.Applications and Microsoft.VisualStudio.Tools.Applications.Runtime namespaces at the top of your code file.

No code example is currently available or this language may not be supported.
Return to top
Show: