Share via


ServerDocument.Save Method (2003 System)

Saves any changes made to the document.

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

Syntax

'Declaration
Public Sub Save
'Usage
Dim instance As ServerDocument

instance.Save()
public void Save()

Exceptions

Exception Condition
DocumentClosedException

The ServerDocument has been closed.

MissingHostItemIdException

The Id property of a CachedDataHostItem is nulla null reference (Nothing in Visual Basic) or empty.

MissingDataIdException

The Id property of a CachedDataItem is nulla null reference (Nothing in Visual Basic) or empty.

MissingTypeException

The DataType property of a CachedDataItem is nulla null reference (Nothing in Visual Basic) or empty.

Remarks

The Save method saves any changes you have made to the application manifest or the cached data. If you created the ServerDocument object by using a document on disk, this method saves these changes to disk. If you created the ServerDocument object by using a document in memory, this method saves these changes to the memory buffer.

Permissions

See Also

Reference

ServerDocument Class

ServerDocument Members

Microsoft.VisualStudio.Tools.Applications.Runtime Namespace