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.3.169
Syntax IAsset Asset(
string fileName
)
Function Asset (
fileName As String
) As IAsset
IAsset^ Asset(
String^ fileName
)
abstract Asset :
fileName : string -> IAsset
Parameters
- fileName
- Type: SystemString
The given potential file name to check for.
Return Value
Type:
IAssetSpecified asset by file name.
Examples
Example of Asset method in custom hook:
if(session.Site.Asset("a/535") != null){
}
See Also