Click or drag to resize

IBasicNoUIAddReference Method

Extends the WWB.NET language using an assembly reference.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
bool AddReference(
	Assembly assembly,
	string imports = null,
	SandboxRules sandboxRules = null
)

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.)
sandboxRules  SandboxRules  (Optional)
Use these sandbox rules to determine which types and members are accessible. If omitted or null the SandboxRules property is used when the Sandboxed property is true.

Return Value

Boolean
True if AddReference is successful.
Remarks
The WWB.NET language is extended using the assembly with automatic imports.

Only public types and members are accessible. Specific SandboxRules can further restrict the types and members.

Use RemoveExtensions("") to remove all the references and automatic imports.

See Also