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 As String, _
ByVal As FileAccess, _
ByVal 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 ,
FileAccess ,
int
)
public procedure WaitFile(
: String;
: FileAccess;
: Integer
); static;
public static function WaitFile(
: String,
: FileAccess,
: int
);
public: static void WaitFile(
string* ,
FileAccess ,
int
)
public:
static void WaitFile(
String^ ,
FileAccess ,
int
)
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