 
            | ImageGear22.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : GetFirstFile Method | 
'Declaration Public Function GetFirstFile() As ImGearFileInfo
'Usage Dim instance As ImGearTWAIN Dim value As ImGearFileInfo value = instance.GetFirstFile()
public ImGearFileInfo GetFirstFile()
public: ImGearFileInfo* GetFirstFile();
public: ImGearFileInfo^ GetFirstFile();
ImGearFileInfo.Name contains the absolute path and name of the file. If the Application calls GetCurrentImage, the current image will be transferred. Applications must not assume any ordering of the files delivered by the Data Source, with one exception: if GetFirstFile is called in the root directory, the operation must return an ImGearFileType.CAMERA device. 
Use OpenSource to select the desired Data Source, prior to calling this method.