Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
ServiceQueueAdmin global right is required
unless the status is set to either CanBeSent, SendNextTime or Normal and the current status is not Waiting, in
that case WriteContainer permission on the document's category is sufficient.
[This is preliminary documentation and is subject to change.]
Sets the document subscription status.
This method is new in Content Studio version 5.2
Namespace: ContentStudio.Document.Subscription
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public void SetDocumentSubscriptionStatus( DocumentId documentId, DocumentSubscriptionStatus newStatus )
Parameters
- documentId
- Type: ContentStudio.DocumentDocumentId
The document identifier. - newStatus
- Type: ContentStudio.Document.SubscriptionDocumentSubscriptionStatus
The new status to set.
Exceptions
Exception | Condition |
---|---|
CSException | A business rule was violated in the underlying Content Studio database |
CSPermissionDeniedException | The caller has no permission to perform the requested action |
CSInvalidSessionException | The session is invalid |
CSInvalidParameterException | A parameter has an invalid value |
CSDocumentNotFoundException | The document could not be found |
InvalidOperationException | The status change operation failed because the current status cannot be set to %newValue%. |
SqlException | An error occurred when executing the command against the Content Studio database |
Content Studio permissions
Remarks
Note |
---|
This method is called by the Service Manager and is primarily not intended for public use. Applications should use the DocumentSubscriptionProperties class instead. |
See Also