Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
[This is preliminary documentation and is subject to change.]
Traverses backwards through the tree of categories starting with a specified category
Namespace: ContentStudio.Document
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public string GetReverseCategoryTree( ConnectionId connectionId, SessionId sessionId, CategoryId categoryId, bool sortAscending )
Parameters
- connectionId
- Type: ContentStudioConnectionId
A value that identifies the web site - sessionId
- Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId). - categoryId
- Type: ContentStudio.DocumentCategoryId
The id of the category to start from. - sortAscending
- Type: SystemBoolean
Set to true to sort starting with the base category, false to start sorting the list starting with the top category
Return Value
Type: StringXml that contains basic information about the categories in the tree.
<root> <status>0</status> <statustext>Success</statustext> <containers> <category unitid="2" categoryid="198" parentid="198" categoryname="Sve" /> <category unitid="2" categoryid="234" parentid="198" categoryname="HTML" /> <category unitid="2" categoryid="235" parentid="234" categoryname="Images" /> </containers> </root>
Exceptions
Exception | Condition |
---|---|
CSException | A business rule was violated in the underlying Content Studio database |
SqlException | An error occurred when executing the command against the Content Studio database |
See Also