Click or drag to resize

IAssetExtension Property


Gets the extension of the file associated with the current version of the asset.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.5.94
Syntax
string Extension { get; }

Property Value

Type: String
Examples
Example of checking the extension in an OnNew custom hook:
C#
if(contentItem.Extension == ".jpg"){
    //Additional Actions
}
See Also