IAssetItemParentFolder Method
|
Retrieves the parent asset folder of the context asset item.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax IAssetFolder ParentFolder()
Function ParentFolder As IAssetFolder
IAssetFolder^ ParentFolder()
abstract ParentFolder : unit -> IAssetFolder
Return Value
Type:
IAssetFolderParent asset folder of this context asset item. If the parent is the root of the Assets Tree, returns null.
Examples
Example of checking parent folder in OnBeforeDelete custom hook:
if(contentItem.ParentFolder().Name == "views"){
}
See Also