Method IsTrusted
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
IsTrusted(string)
Says whether a file lies in a trusted folder: the folder of the program and every folder under it, or a folder of TrustedPaths. Nothing is asked and the file need not exist.
public bool IsTrusted(string path)
Parameters
pathstringThe file, in full or as the working folder reads it.
Returns
- bool
True when its folder is trusted; false too for a path that cannot be made into a full one.
Exceptions
- ArgumentNullException
Thrown when the path is null.