SyncronizedEPTDocument Constructor (ConnectionId, SessionId, CategoryId, String, Int32, Boolean) Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Constructs a new instance of the SyncronizedEPTDocument class that represents an empty EPT document.

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

public SyncronizedEPTDocument(
	ConnectionId connectionId,
	SessionId sessionId,
	CategoryId categoryId,
	string documentName,
	int initialFieldCount,
	bool schemaBound
)

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
The category where the document should be saved to. This category must exist and must be a valid container for EPT documents.
documentName
Type: SystemString
A name to give the new document. This value cannot be null or empty
initialFieldCount
Type: SystemInt32
A value that specifies the suggested number of fields the document can contain.
schemaBound
Type: SystemBoolean
Indicates whether this instance of the document is bound to the underlying EPT schema or not.
Exceptions

ExceptionCondition
CSPermissionDeniedExceptionThe caller has no permission to perform the requested action
CSInvalidSessionExceptionThe session is invalid
CSDocumentNotFoundExceptionThe schema cannot be loaded or the document category has no valid Editing template defined.
CSException
NumberMeaning
1017Invalid object type: The category is not a category for EPT documents.
1503The category does not exist
1509The name may not be empty
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

READ permission on the category is required.
See Also

Reference