SubscriptionDefinition Constructor (CategoryId, SubscriptionType) Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Initializes a new instance of the SubscriptionDefinition class.

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

public SubscriptionDefinition(
	CategoryId categoryId,
	SubscriptionType subscriptionType
)

Parameters

categoryId
Type: ContentStudio.DocumentCategoryId
The category identifier.
subscriptionType
Type: ContentStudio.Document.SubscriptionSubscriptionType
The type of subscription to load.
Exceptions

ExceptionCondition
CSExceptionA business rule was violated in the underlying Content Studio database
CSPermissionDeniedExceptionThe caller has no permission to perform the requested action
CSInvalidSessionExceptionThe session is invalid
SqlExceptionAn error occurred when executing the command against the Content Studio database
NotSupportedExceptionThe value of the subscriptionType is not supported.
Content Studio permissions

Read permission on the category is required.

This method can also successfully be executed by sessions that have the global right ServiceQueueAdmin (member of the GlobalRights).

See Also

Reference