Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Publish permission on the document is required. However workflow rules might require additional workflow based permissions.
[This is preliminary documentation and is subject to change.]
Creates a new revision of the document that will act as the new currently published version of the document.
The current published content will be transferred to document history.
Documents that are of the File type cannot be approved using this method.
This methods supports anonymous callers.
Namespace: ContentStudio.Document
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public void Approve( ConnectionId connectionId, SessionId sessionId, DocumentId documentId, string workflowComment, string workflowStepname )
Parameters
- connectionId
- Type: ContentStudioConnectionId
A value that identifies the web site - sessionId
- Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId). - documentId
- Type: ContentStudio.DocumentDocumentId
The document to approve - workflowComment
- Type: SystemString
Defines a workflow comment. Used only if the document participates in a workflow. - workflowStepname
- Type: SystemString
Specifies the name of an active workflow step that the document is active in. Used only if the document participates in a workflow.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Cannot execute this method on uploaded files |
CSException | A business rule was violated in the underlying Content Studio database |
SqlException | An error occurred when executing the command against the Content Studio database |
Content Studio permissions
See Also