-
Notifications
You must be signed in to change notification settings - Fork 0
API Host ScriptModule
Liu.Yandong.Hanks edited this page Aug 21, 2026
·
3 revisions
Runtime metadata for a compiled module
Back to .NET Host API Reference
ScriptModule is the module object, usually obtained from ScriptDomain.GetModule or function metadata. It is primarily for diagnostics, path handling, and advanced host integration.
string NameReturns
Module name declared by @module.
// Given an initialized ScriptDomain named domain:
var module = domain.GetModule("MAIN");
Console.WriteLine(module.Name); // MAINResolver-relative module path.
string ModulePathReturns
Resolver-relative module path.
// Given an initialized ScriptDomain named domain:
var module = domain.GetModule("MAIN");
Console.WriteLine(module.ModulePath);Normalized absolute file path or virtual full path of the module source.
string FullPathReturns
Absolute or virtual full path of the source.
// Given an initialized ScriptDomain named domain:
var module = domain.GetModule("MAIN");
Console.WriteLine(module.FullPath);AuroraScript.JIT 4.0.0 · Documentation Home · Repository · MIT License