CSSyncronizedDocumentSave Method (Int32) 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)
Syntax

public void Save(
	int editTemplateId
)

Parameters

editTemplateId
Type: SystemInt32
An identifier to a Content Studio Edit template. This parameter is only used when creating a new Edit Template and is ignored for all other operations.
Exceptions

ExceptionCondition
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 the editTemplateId parameter is not an edit template.
  • 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
ArgumentExceptionA parameter has an invalid value.
SqlExceptionAn error occurred when executing the command against the Content Studio database
Remarks

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.
See Also

Reference