Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
ServiceQueueAdmin global right or
READ permission on the document is required.
[This is preliminary documentation and is subject to change.]
Gets the subscription properties of a document.
Namespace: ContentStudio.Document.Subscription
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public string GetDocumentSubscriptionProperties( DocumentId documentId, SubscriptionType subscriptionType )
Parameters
- documentId
- Type: ContentStudio.DocumentDocumentId
The document identifier. - subscriptionType
- Type: ContentStudio.Document.SubscriptionSubscriptionType
The type of the subscription to list. Currently only Newsletter is valid.
Return Value
Type: StringXml
<root> <status>0</status> <statustext>Success</statustext> <document name="String value" substat="String value" categoryid="Integer value" enabled="BooleanString value"/> </root>
The returned xml has the following parts and meaning
Element/attribute | Value |
---|---|
root/status | Integer: Indicates the outcome of the call, always 0 |
root/statustext | String: Indicates the textual outcome of the call, always 'Success' |
root/document@name | String: The name of the document. |
root/document@substat | String: The string representation of the DocumentSubscriptionStatus enumeration member that represents the status. |
root/document@categoryid | Integer: The identifier of the document's category. |
root/document@enabled | BooleanString ('True' or 'False'): Indicates whether the document's category is enabled for subscription. |
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 |
NotSupportedException | The value of the subscriptionType is not supported. |
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 not primarily intended for public use. Applications should use the DocumentSubscriptionProperties class instead. This method is new in Content Studio 5.2 |
See Also