CSSyncronizedDocumentSave Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Saves changes to a loaded and writable document that has been changed.

Namespace: ContentStudio.Document
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)

public void Save()

CSExceptionA business rule in Content Studio was violated
  • 1001 - Invalid session
  • 1002 - Permission denied
  • 1018 - Permission denied. You do not have the group right needed to save executable content.
  • 1904 - An attempt to create a presentation template was made but no edit template was supplied.
  • 1503 - Could not save. The category does not exist.
  • 1512 - The name already exists, choose another name.
  • 1801 - The document is in the recycle bin. Restore or delete it first.
  • 1804 - The document could be found.
  • 1810 - The document must be checked out by the caller.
  • 1811 - The document is protected.
  • 1839 - Cannot create the document, the number of documents in this category has exceeded the document quota
  • 1517 - The name is already in use for another component. Choose another name. For components only
InvalidOperationExceptionCannot save, the document is in a read-only state
SqlExceptionAn error occurred when executing the command against the Content Studio database

This method cannot be used on documents that are marked read-only, which can be checked by the ReadOnly property If the IsDirty property is false, this method does nothing.
It is an error to create a presentation template with this version of the Save method. Use the overloaded Save(Int32) version of this method instead which allows you to supply the mandatory Edit template.
See Also