This function will validate if the job is allowed to load a file from or save a file to the given path.
Enabling this validation and exception paths are configured using the section:
Spotfire.Dxp.Automation.Framework/security/ in Spotfire.Dxp.Worker.Automation.config.When executing jobs locally in Job Builder, this function will always succeed.
Namespace: Spotfire.Dxp.Automation.Extension
Assembly: Spotfire.Dxp.Automation.Framework (in Spotfire.Dxp.Automation.Framework.dll) Version: 71.0.21826.3255 (71.0.21826.3255)
Syntax
C#
public static void ValidateLoadAndSavePath( string pathToValidate )
Parameters
- pathToValidate
- Type: SystemString
The non empty absolute or relative path to validate. Relative paths are validated using the current path.
Exceptions
| Exception | Condition |
|---|---|
| UnauthorizedAccessException | If the job cannot load or save to the given path. |
| ArgumentException | If the argument is null or an empty string. |
Version Information
See Also