Help > Web Development > Object Reference > Object Reference > ISYSDocument > FileExtension Property
<a name="kanchor311"></a>ISYSDocument:FileExtension Property
Returns the file extension of the document, taking into account nested files (zip and attachments). Read-Only.

Syntax
[VBScript]
ReadOnly property ISYSDocument.FileExtension as string
[C#]
string ISYSDocument.FileExtension {get;}
[ColdFusion/Java]
java.lang.String ISYSDocument.FileExtension() throws ComException;
Examples
[VBScript]
<% ' Execute a pre-configured ISYSSearch object Set Results = ISYSSearch.Execute ' Get the document Set Document = Results(CLng("doc")) If Document.FileExtension = ".doc" Then ' Word specific logic. ' Note that FormatType can be more acurate as it will find word documents ' without a .doc extension. End If %>