CSSyncronizedDocumentSyncronizeFile Method (Boolean) Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Synchronizes the content of the document with the its file system representation and optionally synchronizes the file permissions.

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

public void SyncronizeFile(
	bool applyPermissions
)

Parameters

applyPermissions
Type: SystemBoolean
Applies permissions on the file if any direct permission entries exists for the document.
Exceptions

ExceptionCondition
CSException
  • 1001 - The Session is invalid
  • 1804 - The document could not be found.
CSPermissionDeniedExceptionPermission denied
SecurityExceptionContent Studio runtime has not the permission needed to access the file system.
IOExceptionAn error occurred when Content Studio tried to access the file system.
DirectoryNotFoundExceptionAn error occurred when Content Studio tried to write a file in a directory that does not exist.
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

Either Syncronize or GlobalGroupAdmin user rights is required in order to execute this method.
See Also

Reference