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

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

Removes a specific subscription by using a specific connection identifier and subscription identifier. I.e removes a subscriber from their category subscription definition.

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

public static bool RemoveSubscription(
	ConnectionId connectionId,
	string identifier
)

Parameters

connectionId
Type: ContentStudioConnectionId
A value that identifies the web site
identifier
Type: SystemString
An identifier to the subscription to remove.

Return Value

Type: Boolean
true if a subscription was removed; otherwise, false
Exceptions

ExceptionCondition
ArgumentNullExceptionidentifier cannot be null
ArgumentOutOfRangeExceptionThe identifier is in the wrong format.
FormatExceptionThe identifier is in the wrong format.
OverflowExceptionThe identifier is in the wrong format.
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

Any caller that have access to the identifier identifier can successfully execute this method.
See Also

Reference