IAssetFolderFolders Method
|
Retrieves a collection of the asset folders inside of the folder.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax IEnumerable<IAssetFolder> Folders(
out int count,
int pageSize = -1,
int startIndex = -1
)
Function Folders (
<OutAttribute> ByRef count As Integer,
Optional pageSize As Integer = -1,
Optional startIndex As Integer = -1
) As IEnumerable(Of IAssetFolder)
IEnumerable<IAssetFolder^>^ Folders(
[OutAttribute] int% count,
int pageSize = -1,
int startIndex = -1
)
abstract Folders :
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 child 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 child assets.
Examples
Example of removing all assets in a folder in a custom hook:
var assetFolder = session.Site.AssetFolder("af/114");
int c;
foreach (var childFolder in assetFolder.Folders(out c))
{
assetFolder.RemoveFolder(childFolder);
}
See Also