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

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

Removes all subscriptions from a specific definition.

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

public int ClearSubcriptions()

Return Value

Type: Int32
The number of subscriptions deleted
Exceptions

ExceptionCondition
CSInvalidSessionExceptionThe session is invalid
CSPermissionDeniedExceptionThe caller has no permission to perform the requested action
SqlExceptionAn error occurred when executing the command against the Content Studio database
ArgumentException The current definition no longer exist.
InvalidOperationException The Identifier property is null since the subscription has not been saved for the first time.
Content Studio permissions

The caller must have WriteContaineraccess to the category where the subscription is defined or have GlobalGroupAdmin global right.
See Also

Reference