CSDocumentInformationSetDocumentId Method Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Sets the DocumentID property if un-assigned.

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

protected void SetDocumentId(
	int newValue
)

Parameters

newValue
Type: SystemInt32
The new value to set.
Exceptions

ExceptionCondition
InvalidOperationExceptionThe DocumentID property is read-only when assigned a value.
Remarks

You cannot set the DocumentID property if it already has a value.
Inheriting classes uses this method when assigning the identifier of a newly created document to sync the DocumentID property before reloading the created document's properties.
See Also

Reference