CogImageFile FileName Property Cognex VisionPro 9.24
Name of last opened file.

Namespace: Cognex.VisionPro.ImageFile
Assembly: Cognex.VisionPro.ImageFile (in Cognex.VisionPro.ImageFile.dll) Version: 91.0.0.0
Syntax

public string FileName { get; }

Property Value

Type: String
Remarks

Name of the last opened file. If no file is open, FileName is NULL.

Default Value: NULL

Examples

Imports Cognex.Visionpro.ImageFile 

' Get the name of the last opened file and display it
Dim strFileName As String
strFileName = imagefile.FileName
MessageBox.Show("Last file opened was:" + strFileName)
 using Cognex.Visionpro.ImageFile;

 // Get the name of the last opened file and display it 
string  strFileName;
strFileName = imagefile.FileName;
MessageBox.Show("Last file opened was:" + strFileName);
See Also