MenuCreatorListChildren Method (ConnectionId, SessionId, DocumentId, DocumentId, DateTime) Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Returns a list of child documents to a document

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

public string ListChildren(
	ConnectionId connectionId,
	SessionId sessionId,
	DocumentId documentId,
	DocumentId presentationTemplateId,
	DateTime dateCriteria
)

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).
documentId
Type: ContentStudio.DocumentDocumentId
The document to list children for
presentationTemplateId
Type: ContentStudio.DocumentDocumentId
This parameter is ignored. Pass zero.
dateCriteria
Type: SystemDateTime
A DateTime that is compared with the publish date of the listed documents. Can be used when previewing documents in time. Pass MinValue to use the current date.

Return Value

Type: String
Xml This method returns the following xml syntax
<root>
  <status>0</status>
  <statustext>Success</statustext>
  <document>
    <elementid>1022</elementid>
    <elementname>Startsida</elementname>
    <parentelementid>1146</parentelementid>
    <child>1</child>
    <categoryid>131</categoryid>
    <publishdate>2006-03-03T14:55:00</publishdate>
    <categoryname>Webbsidor</categoryname>
    <elementorder>0</elementorder>
    <data>
      <url></url>
      <data></data>
      <target></target>
    </data>
  </document>
  <!-- more document can follow -->
</root>
Exceptions

ExceptionCondition
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

All authenticated users and the anonymous use can call this method. However, only the document that the caller can BROWSE is returned.
See Also

Reference