Selerix Developer Tools
WaitFile Method






Selerix.Foundation Assembly > Selerix.Foundation.Data Namespace > Utils Class : WaitFile Method
The file which for which access availability is being tested
The file access level to test for
The amount of time to wait until throwing an exception to indicate that the file is not available
Pauses execution until a file is available for the given access. An exception is thrown if the given time limit is exceeded without the file becoming available.
Syntax
'Declaration
 
Public Shared Sub WaitFile( _
   ByVal fileName As String, _
   ByVal fa As FileAccess, _
   ByVal minutesToWait As Integer _
) 
'Usage
 
Dim fileName As String
Dim fa As FileAccess
Dim minutesToWait As Integer
 
Utils.WaitFile(fileName, fa, minutesToWait)
public static void WaitFile( 
   string fileName,
   FileAccess fa,
   int minutesToWait
)
public procedure WaitFile( 
    fileName: String;
    fa: FileAccess;
    minutesToWait: Integer
); static; 
public static function WaitFile( 
   fileName : String,
   fa : FileAccess,
   minutesToWait : int
);
public: static void WaitFile( 
   string* fileName,
   FileAccess fa,
   int minutesToWait
) 
public:
static void WaitFile( 
   String^ fileName,
   FileAccess fa,
   int minutesToWait
) 

Parameters

fileName
The file which for which access availability is being tested
fa
The file access level to test for
minutesToWait
The amount of time to wait until throwing an exception to indicate that the file is not available
See Also

Reference

Utils Class
Utils Members