EyeAuras Docs EyeAuras Docs
EyeAuras Docs EyeAuras Docs
DocFX + Singulink = ♥

Search Results for

    Method AddNewExtension

    AddNewExtension<T>()

    Declaration
    IAuraScriptSandbox AddNewExtension<T>() where T : ScriptContainerExtension
    Returns
    Type Description
    IAuraScriptSandbox
    Type Parameters
    Name Description
    T

    AddNewExtension(Type)

    Adds a new extension of the specified type to the script container. Validates that the type is not already registered and is assignable to ScriptContainerExtension.

    Declaration
    IAuraScriptSandbox AddNewExtension(Type extensionType)
    Parameters
    Type Name Description
    Type extensionType

    The type of the extension to add.

    Returns
    Type Description
    IAuraScriptSandbox

    The current IAuraScriptSandbox instance for fluent chaining.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if the extension of the given type has already been added.

    ArgumentException

    Thrown if the specified type does not inherit from ScriptContainerExtension, or if the resolved instance is not compatible with ScriptContainerExtension.

    2025 © Xab3r. All rights reserved.