TreeNodeRepositoryAddCollection Method |
Registers the given collection of objects within the repository.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntaxpublic virtual TreeNodeCollectionSettings AddCollection(
string name,
string className,
string siteName,
string aliasPath,
string cultureCode,
bool combineWithDefaultCulture,
string classNames,
string where,
string orderBy,
int maxRelativeLevel,
bool selectOnlyPublished,
int topN,
string columns
)
Parameters
- name
- Type: SystemString
Collection name - className
- Type: SystemString
Default class name - siteName
- Type: SystemString
Nodes site name - aliasPath
- Type: SystemString
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: SystemString
Nodes culture code - combineWithDefaultCulture
- Type: SystemBoolean
Specifies if return the default culture document when specified culture not found - classNames
- Type: SystemString
List of classNames to select separated by semicolon (e.g.: "cms.article;cms.product") - where
- Type: SystemString
Where condition to use for the data selection - orderBy
- Type: SystemString
Order by clause to use for the data selection - maxRelativeLevel
- Type: SystemInt32
Maximal child level of the selected nodes - selectOnlyPublished
- Type: SystemBoolean
Select only published nodes - topN
- Type: SystemInt32
Select top N rows only - columns
- Type: SystemString
Columns to be selected
Return Value
Type:
TreeNodeCollectionSettings
See Also