CSApprovedDocumentInformation Constructor (ConnectionId, SessionId, DocumentId, Boolean) 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 CSApprovedDocumentInformation class and loads document information using a specific connectionId, sessionId and documentId with the possibility to specify whether or not to load content data.

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

public CSApprovedDocumentInformation(
	ConnectionId connectionId,
	SessionId sessionId,
	DocumentId documentId,
	bool loadContent
)

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
A value that identifies the document whose details should be displayed.
loadContent
Type: SystemBoolean
Indicates whether the content related data should be returned or not. Set this parameter to false unless you really need any content data such as Introduction and MenuData
Exceptions

ExceptionCondition
CSPermissionDeniedExceptionThe caller has no permission to perform the requested action
CSInvalidSessionExceptionThe session is invalid
CSDocumentNotFoundExceptionThe document could not be found
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

BROWSE permission is required on the document.
Remarks

This constructor loads the document's meta data and optionally its content related data. The content related data is loaded from the currently approved version of the document and should there be no approved content available, no exception is thrown but the content related fields will be un-initialized.
The following properties are content related.
PropertyValue when not initialized
Introductionnull (Nothing in Visual Basic)
MenuUrlnull (Nothing in Visual Basic)
MenuDatanull (Nothing in Visual Basic)
MenuTargetnull (Nothing in Visual Basic)
RevisionDatenull (Nothing in Visual Basic)
RevisionZero
See Also

Reference