Class DefaultScriptSite
Implements
Microsoft.Vsa.IVsaSite
Inherited Members
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
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
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
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
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
Implements
Microsoft.Vsa.IVsaSite