Click or drag to resize

IAssetFolderAsset Method


Retrieves a single asset from an asset folder in the Assets Tree within a particular Site.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.5.94
Syntax
IAsset Asset(
	string fileName
)

Parameters

fileName
Type: SystemString
The given potential file name to check for.

Return Value

Type: IAsset
Specified asset by file name.
Examples
Example of Asset method in custom hook:
C#
if(session.Site.Asset("a/535") != null){
    //Additional Actions
}
See Also