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.3.169
Syntax string Extension { get; }
ReadOnly Property Extension As String
Get
property String^ Extension {
String^ get ();
}
abstract Extension : string with get
Property Value
Type:
StringExamples
Example of checking the extension in an OnNew custom hook:
if(contentItem.Extension == ".jpg"){
}
See Also