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