IAssetFolderDescendantFolders Method
|
Retrieves the descendant asset folders of the context asset folder.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax IEnumerable<IAssetFolder> DescendantFolders(
out int count,
int pageSize = -1,
int startIndex = -1
)
Function DescendantFolders (
<OutAttribute> ByRef count As Integer,
Optional pageSize As Integer = -1,
Optional startIndex As Integer = -1
) As IEnumerable(Of IAssetFolder)
IEnumerable<IAssetFolder^>^ DescendantFolders(
[OutAttribute] int% count,
int pageSize = -1,
int startIndex = -1
)
abstract DescendantFolders :
count : int byref *
?pageSize : int *
?startIndex : int
(* Defaults:
let _pageSize = defaultArg pageSize -1
let _startIndex = defaultArg startIndex -1
*)
-> IEnumerable<IAssetFolder>
Parameters
- count
- Type: SystemInt32
Total count of all descendant asset folders. - pageSize (Optional)
- Type: SystemInt32
Number of entries to return. If not provided, returns all entries. - startIndex (Optional)
- Type: SystemInt32
Starting index of entries. If not provided, starts from the first entry.
Return Value
Type:
IEnumerableIAssetFolderCollection of descendant asset folders.
Examples
Example of DescendantFolders method in custom hook:
int outVar;
foreach(IAssetFolder folder in session.Site.AssetFolder("af/5").DescendantFolders(out outVar)){
}
See Also