C# Класс Rhino.Commonjs.Module.ModuleScript

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetBase ( ) : Uri

Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI.

Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI.

GetScript ( ) : System.Script

Returns the script object representing the code of the module.

Returns the script object representing the code of the module.

GetUri ( ) : Uri

Returns the URI of the module.

Returns the URI of the module.

IsSandboxed ( ) : bool

Returns true if this script has a base URI and has a source URI that is contained within that base URI.

Returns true if this script has a base URI and has a source URI that is contained within that base URI.

ModuleScript ( System.Script script, Uri uri, Uri @base ) : System

Creates a new CommonJS module.

Creates a new CommonJS module.

Описание методов

GetBase() публичный Метод

Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI.
Returns the base URI from which this module source was loaded, or null if it was loaded from an absolute URI.
public GetBase ( ) : Uri
Результат System.Uri

GetScript() публичный Метод

Returns the script object representing the code of the module.
Returns the script object representing the code of the module.
public GetScript ( ) : System.Script
Результат System.Script

GetUri() публичный Метод

Returns the URI of the module.
Returns the URI of the module.
public GetUri ( ) : Uri
Результат System.Uri

IsSandboxed() публичный Метод

Returns true if this script has a base URI and has a source URI that is contained within that base URI.
Returns true if this script has a base URI and has a source URI that is contained within that base URI.
public IsSandboxed ( ) : bool
Результат bool

ModuleScript() публичный Метод

Creates a new CommonJS module.
Creates a new CommonJS module.
public ModuleScript ( System.Script script, Uri uri, Uri @base ) : System
script System.Script the script representing the code of the module.
uri System.Uri the URI of the module.
@base System.Uri
Результат System