ImageGear for .NET
GetFirstFile Method
See Also  Send Feedback
ImageGear21.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : GetFirstFile Method




Glossary Item Box

This method gets the first filename in a directory, and returns information about that file (the same information that can be retrieved with GetFileInfo).

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Return Value

An ImGearFileInfo class containing information about the first file in a directory.

Remarks

The Data Source positions the file system context to point to the first filename. 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.

See Also

©2013. Accusoft Corporation. All Rights Reserved.