Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
READ permission on the document is required.
[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.- None; the following content related properties are not loaded:
- Draft; an attempt to load the draft content is made. If a draft does not exists, a CSException1821 - No writable content exists is generated.
- DraftOrApproved; an attempt to load the draft content is made. If a draft does not exists, the approved content is loaded instead.
- Approved; an attempt to load the approved content is made. If an approved content does not exists, a CSException1830 - There is currently no approved content. is generated.
Exceptions
Exception | Condition |
---|---|
CSException |
|
SqlException | An error occurred when executing the command against the Content Studio database |
Content Studio permissions
See Also