Method MayLoad
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
MayLoad(string)
Decides whether a file of code may be loaded, in this order: SECURELOAD 0 loads it; a file in a trusted folder loads; SECURELOAD 2 refuses any other, an Always Load answer given before notwithstanding; under SECURELOAD 1 a file answered Load Once in this run, or Always Load with the same bytes, loads, and any other is asked about (Ask), and refused where nothing asks. Each refusal is one line of the log at the Debug level.
public bool MayLoad(string path)
Parameters
pathstringThe file, in full or as the working folder reads it.
Returns
- bool
True when it may be loaded.
Exceptions
- ArgumentNullException
Thrown when the path is null.