menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DefaultScriptSite - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DefaultScriptSite

    Inheritance
    System.Object
    ScriptSite
    DefaultScriptSite
    Implements
    Microsoft.Vsa.IVsaSite
    Inherited Members
    ScriptSite.ClearCompiledState()
    ScriptSite.CompileError
    ScriptSite.GetCompiledState(Byte[], Byte[])
    ScriptSite.Notify(String, Object)
    ScriptSite.OnCompileError(VsaErrorEventArgs)
    ScriptSite.OnCompilerError(IVsaError)
    ScriptSite.SetCompiledState(IVsaEngine)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Scripting
    Assembly: Syncfusion.Scripting.Base.dll
    Syntax
    public class DefaultScriptSite : ScriptSite, IVsaSite

    Constructors

    DefaultScriptSite()

    Default constructor.

    Declaration
    public DefaultScriptSite()

    Methods

    Clear()

    Removes all event sources, global instances, and compiled code from the site.

    Declaration
    public override void Clear()
    Overrides
    ScriptSite.Clear()

    GetEventSourceInstance(String, String)

    Gets a reference to an event source previously added to a script engine using the IVsaCodeItem.AddEventSource method.

    Declaration
    public override object GetEventSourceInstance(string itemName, string eventSourceName)
    Parameters
    Type Name Description
    System.String itemName
    System.String eventSourceName
    Returns
    Type
    System.Object
    Overrides
    ScriptSite.GetEventSourceInstance(String, String)

    GetGlobalInstance(String)

    Gets a reference to a global item, such as the host-provided application object.

    Declaration
    public override object GetGlobalInstance(string globInstanceName)
    Parameters
    Type Name Description
    System.String globInstanceName
    Returns
    Type
    System.Object
    Overrides
    ScriptSite.GetGlobalInstance(String)

    RegisterEventSource(String, Object)

    Registers and event source with the site.

    Declaration
    public override void RegisterEventSource(string name, object obj)
    Parameters
    Type Name Description
    System.String name

    Name of the event source

    System.Object obj

    Event source object

    Overrides
    ScriptSite.RegisterEventSource(String, Object)

    RegisterGlobalInstance(String, Object)

    Registers a global instance with the site.

    Declaration
    public override void RegisterGlobalInstance(string name, object obj)
    Parameters
    Type Name Description
    System.String name

    Name of the global instance

    System.Object obj

    Global instance object

    Overrides
    ScriptSite.RegisterGlobalInstance(String, Object)

    Implements

    Microsoft.Vsa.IVsaSite
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved