Table of Contents

Property ConfirmUntrusted

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

ConfirmUntrusted

Gets or sets what is asked before a plugin outside the trusted folders is loaded: given the file's full path, it says whether to load it, as a dialog that asks the user does. Null, as it is until set, loads none.

public Func<string, bool> ConfirmUntrusted { get; set; }

Property Value

Func<string, bool>

Remarks

A yes is kept for the file's folder for the rest of the session, not on disk: a plugin loaded from C:\Dev\Labels\bin is reloaded with PLUGINRELOAD, as its author builds it again and again, without the question, and the other files of that folder load without it too. A no is not kept, so the next load of the file asks again.