DocumentRepository AddCollection Method Kentico 8.1 API Reference
Registers the given collection of objects within the repository.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

name
Type: OnlineSystem String
Collection name
className
Type: OnlineSystem String
Default class name
siteName
Type: OnlineSystem String
Nodes site name
aliasPath
Type: OnlineSystem String
Path. It may contain % and _ as wild card characters for any number of unknown characters or one unknown character respectively (for MS SQL)
cultureCode
Type: OnlineSystem String
Nodes culture code
combineWithDefaultCulture
Type: OnlineSystem Boolean
Specifies if return the default culture document when specified culture not found
classNames
Type: OnlineSystem String
List of classNames to select separated by semicolon (e.g.: "cms.article;cms.product")
where
Type: OnlineSystem String
Where condition to use for the data selection
orderBy
Type: OnlineSystem String
Order by clause to use for the data selection
maxRelativeLevel
Type: OnlineSystem Int32
Maximal child level of the selected nodes
selectOnlyPublished
Type: OnlineSystem Boolean
Select only published nodes
topN
Type: OnlineSystem Int32
Select top N rows only
columns
Type: OnlineSystem String
Columns to be selected

Return Value

Type: TreeNodeCollectionSettings
See Also