Click or drag to resize

IAssetFile Method


Retrieves the FileInfo object for the associated file.

The FileInfo class provides properties and methods for manipulating physical files and facilitates creation of FileStream objects.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
FileInfo File()

Return Value

Type: FileInfo
System.IO.FileInfo for the file associated with the asset.
Examples
Example of verifying that a file exists in a custom hook:
C#
if(contentItem.FileInfo.Exists){
    //Additional Actions
}
See Also