CSDocumentInformation Constructor (ConnectionId, SessionId, DocumentId, CSDocumentInformationContentToLoad) Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Creates a new instance of the Document class and loads the content of a Content Studio document.

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

public CSDocumentInformation(
	ConnectionId connectionId,
	SessionId sessionId,
	DocumentId documentId,
	CSDocumentInformationContentToLoad version
)

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
An identifier to a Content Studio document. The document must exist and, depending on the value of the version, have a certain status.
version
Type: ContentStudio.DocumentCSDocumentInformationContentToLoad
One of the CSDocumentInformationContentToLoad enumeration members that defines what content version of the document to load.
The value of version has the following impact.
Exceptions

ExceptionCondition
CSException
  • 1001 - Session is invalid
  • 1002 - Permission denied
  • 1804 - The document could not be found.
  • 1821 - No writable content exists.
  • 1830 - There is currently no approved content.
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

READ permission on the document is required.
See Also

Reference