Click or drag to resize

IAssetFolderDescendantAssets Method


Retrieves the descendants] assets of the context asset folder.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
IEnumerable<IAsset> DescendantAssets(
	out int count,
	int pageSize = -1,
	int startIndex = -1
)

Parameters

count  Int32
Total count of all descendant assets.
pageSize  Int32  (Optional)
Number of entries to return. If not provided, returns all entries.
startIndex  Int32  (Optional)
Starting index of entries. If not provided, starts from the first entry.

Return Value

IEnumerableIAsset
Collection of descendant assets.
Example
Example of DescendantAssets method in custom hook:
C#
int outVar;
foreach(IAsset asset in session.Site.AssetFolder("af/5").DescendantAssets(out outVar)){
    //Additional Actions
}
See Also