TreeProviderSelectNodesCount Method |
Returns nodes count matching the provided parameters.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax public virtual int SelectNodesCount(
string siteName,
string aliasPath,
string cultureCode,
bool combineWithDefaultCulture,
string classNames,
string where,
string orderBy,
int maxRelativeLevel,
bool selectOnlyPublished
)
Parameters
- siteName
- Type: SystemString
Nodes site name - aliasPath
- Type: SystemString
Nodes alias path - 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
Indicates whether node in default culture should be counted in if node in specified culture was not found. - classNames
- Type: SystemString
List of class names separated by semicolon (e.g.: "cms.article;cms.product") - where
- Type: SystemString
Where condition for the data count - orderBy
- Type: SystemString
Order by clause for the data counting - maxRelativeLevel
- Type: SystemInt32
Maximum child level of the counted nodes - selectOnlyPublished
- Type: SystemBoolean
Count only published nodes.
Return Value
Type:
Int32See Also