IBasicNoUIAddSafeReference Method |
Extends the WWB.NET language using an assembly reference.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxbool AddSafeReference(
Assembly assembly,
string imports = null
)
Function AddSafeReference (
assembly As Assembly,
Optional imports As String = Nothing
) As Boolean
bool AddSafeReference(
Assembly^ assembly,
String^ imports = nullptr
)
Parameters
- assembly Assembly
-
Add this reference to the WWB.NET language.
- imports String (Optional)
-
All macros are parsed with automatic Imports for each import in the string.
(Separate imports with a space.)
To add a safe reference to a specific module prefix it with "modulepath|".
Return Value
Boolean
True if
AddSafeReference is successful.
Remarks2025-01-24: This method does not use the SandBoxRules at this time.
The WWB.NET language is extended using the assembly with automatic imports.
Only public types and members are accessible.
All accessible types and members are considered safe for sandboxing.
Use RemoveExtensions("") to remove all the references and automatic imports.
See Also