 | ExecActionIsValidPath Method |
Determines whether the specified path is a valid filename and, optionally, if it exists.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxpublic static bool IsValidPath(
string path,
bool checkIfExists = true,
bool throwOnException = false
)
Public Shared Function IsValidPath (
path As String,
Optional checkIfExists As Boolean = true,
Optional throwOnException As Boolean = false
) As Boolean
public:
static bool IsValidPath(
String^ path,
bool checkIfExists = true,
bool throwOnException = false
)
Request Example
View SourceParameters
- path
- Type: SystemString
The path. - checkIfExists (Optional)
- Type: SystemBoolean
if set to true check if file exists. - throwOnException (Optional)
- Type: SystemBoolean
if set to true throw exception on error.
Return Value
Type:
Booleantrue if the specified path is a valid filename; otherwise,
false.
See Also