GlobalScope Class

Definition

Represents the global scope.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class GlobalScope : Microsoft::JScript::ActivationObject, System::Runtime::InteropServices::Expando::IExpando
[System.Runtime.InteropServices.ComVisible(true)]
public class GlobalScope : Microsoft.JScript.ActivationObject, System.Runtime.InteropServices.Expando.IExpando
type GlobalScope = class
    inherit ActivationObject
    interface IExpando
    interface IReflect
Public Class GlobalScope
Inherits ActivationObject
Implements IExpando
Inheritance
Attributes
Implements

Constructors

GlobalScope(GlobalScope, VsaEngine)

Initializes a new instance of the GlobalScope class.

Fields

engine

Stores a reference to the scripting engine.

(Inherited from ScriptObject)
field_table

Stores an array of variables that are in scope.

(Inherited from ActivationObject)
parent

Stores a reference to the parent object.

(Inherited from ScriptObject)

Properties

Item[Double]

Gets or sets a member of the script object that is designated by the specified Double index value.

(Inherited from ScriptObject)
Item[Int32]

Gets or sets a member of the script object that is designated by the specified Int32 index value.

(Inherited from ScriptObject)
Item[Object[]]

Gets or sets a member of the script object that is designated by the specified name, Double index value, or Int32 index value.

(Inherited from ScriptObject)
Item[String]

Gets or sets a member of the script object that is designated by the specified name.

(Inherited from ScriptObject)
UnderlyingSystemType

Gets the type of the script object.

(Inherited from ScriptObject)

Methods

AddField(String)

Adds the specified field to the global scope.

CreateField(String, FieldAttributes, Object)

Creates a new global variable, using the specified name, value, and attributes.

(Inherited from ActivationObject)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetDefaultThisObject()

Gets the current default scope, which is either the contained object of a with statement scope, or the global scope.

GetField(String, BindingFlags)

Gets a field that has the specified name.

(Inherited from ScriptObject)
GetField(String, Int32)

Gets a field that has the specified name by searching the scope hierarchy. This method searches only the scope that is specified by the lexical level.

GetFields(BindingFlags)

Gets an array of FieldInfo objects that correspond to all fields of the global scope.

GetGlobalScope()

Gets the global scope by returning a reference to this object.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLocalField(String)

Gets the local declaration of a field that has the specified name. This is used at compile time for error checking.

GetMember(String, BindingFlags)

Gets an array of MemberInfo objects that correspond to all members that match a specified name.

GetMembers(BindingFlags)

Gets an array of MemberInfo objects that correspond to all members of the global scope.

GetMemberValue(String, Int32)

Gets the value of the specified member by searching the scope hierarchy. This method searches only the scope that is specified by the lexical level.

(Inherited from ActivationObject)
GetMethod(String, BindingFlags)

Gets a method that has the specified name.

(Inherited from ScriptObject)
GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

Gets a method that has the specified name by using the specified selection criteria.

(Inherited from ScriptObject)
GetMethods(BindingFlags)

Gets an array of MethodInfo objects that correspond to all methods of the global scope.

GetParent()

Gets a reference to the parent object.

(Inherited from ScriptObject)
GetProperties(BindingFlags)

Gets an array of PropertyInfo objects that correspond to all properties of the global scope.

GetProperty(String, BindingFlags)

Gets a property that has the specified name.

(Inherited from ScriptObject)
GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

Gets a property that has the specified name by using the specified selection criteria.

(Inherited from ScriptObject)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])

Invokes the specified member.

(Inherited from ScriptObject)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IExpando.AddMethod(String, Delegate)

Adds the specified method to the global scope. This method is not implemented in JScript.

IExpando.AddProperty(String)

Adds the specified property to the global scope. This method is not implemented in JScript.

IExpando.RemoveMember(MemberInfo)

Removes the specified member from the global scope.

Applies to

See also