CSDocumentInformation Constructor (ConnectionId, SessionId, CategoryId, String) 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 CSDocumentInformation object that represents an empty document.

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

protected CSDocumentInformation(
	ConnectionId connectionId,
	SessionId sessionId,
	CategoryId categoryId,
	string documentName
)

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).
categoryId
Type: ContentStudio.DocumentCategoryId
Defines the category where the new document should be saved.
documentName
Type: SystemString
A name to give to the new document. This name cannot be null or empty.
Exceptions

ExceptionCondition
CSException
  • 1001 - Session is invalid
  • 1002 - Permission denied
  • 1503 - The category does not exist.
SqlExceptionAn error occurred when executing the command against the Content Studio database
ArgumentNullExceptionThe documentName parameter is null (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionThe documentName parameter is empty.
Content Studio permissions

READ permission on the category is required.
Remarks

Inheriting classes that implements document creation call this constructor to be able to create new documents.
See Also

Reference