This documentation is archived and is not being maintained.

StackFrame Class

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

Represents a stack frame for executing code. This class contains methods for resolving scope. It belongs to the compilation and run-time state category.

Namespace:  Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public ref class StackFrame sealed : public ScriptObject, 
	IActivationObject

The StackFrame type exposes the following members.

  NameDescription
Public propertyItem[Double]Gets or sets a member of the script object that is designated by the specified Double index value. (Inherited from ScriptObject.)
Public propertyItem[Int32]Gets or sets a member of the script object that is designated by the specified Int32 index value. (Inherited from ScriptObject.)
Public propertyItem[array<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.)
Public propertyItem[String]Gets or sets a member of the script object that is designated by the specified name. (Inherited from ScriptObject.)
Public propertyUnderlyingSystemTypeGets the type of the script object. (Inherited from ScriptObject.)
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetDefaultThisObjectGets the current default scope, which will be either the contained object of a with statement scope, or the global scope.
Public methodGetField(String, BindingFlags)Gets a field that has the specified name. (Inherited from ScriptObject.)
Public methodGetField(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.
Public methodGetFieldsGets an array of FieldInfo objects that correspond to all fields of the current script object. (Inherited from ScriptObject.)
Public methodGetGlobalScopeGets the global scope by searching the scope hierarchy until it finds a scope that includes static variables, for example, a module scope.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetMemberRetrieves an array of MemberInfo objects that correspond to all members that match a specified name. (Overrides ScriptObject::GetMember(String, BindingFlags).)
Public methodGetMembersRetrieves an array of MemberInfo objects that correspond to all members of the current object. (Overrides ScriptObject::GetMembers(BindingFlags).)
Public methodGetMemberValueGets the value of the specified member by searching the scope hierarchy. This method searches only the scope that is specified by the lexical level.
Public methodGetMethod(String, BindingFlags)Gets a method that has the specified name. (Inherited from ScriptObject.)
Public methodGetMethod(String, BindingFlags, Binder, array<Type>, array<ParameterModifier>)Gets a method that has the specified name by using the specified selection criteria. (Inherited from ScriptObject.)
Public methodGetMethodsGets an array of MethodInfo objects that correspond to all methods of the current script object. (Inherited from ScriptObject.)
Public methodGetParentGets a reference to the parent object. (Inherited from ScriptObject.)
Public methodGetPropertiesGets an array of PropertyInfo objects that correspond to all properties of the current script object. (Inherited from ScriptObject.)
Public methodGetProperty(String, BindingFlags)Gets a property that has the specified name. (Inherited from ScriptObject.)
Public methodGetProperty(String, BindingFlags, Binder, Type, array<Type>, array<ParameterModifier>)Gets a property that has the specified name by using the specified selection criteria. (Inherited from ScriptObject.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInvokeMemberInvokes the specified member. (Inherited from ScriptObject.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberPushStackFrameForMethodCreates a new StackFrame object for a method and pushes it onto the global scope stack.
Public methodStatic memberPushStackFrameForStaticMethodCreates a new StackFrame object for a static method and pushes it onto the global scope stack.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public fieldclosureInstanceStores a reference to the caller of the current stack frame.
Public fieldengineStores a reference to the scripting engine. (Inherited from ScriptObject.)
Public fieldlocalVarsStores the local variables for this stack frame.
Protected fieldparentStores a reference to the parent object. (Inherited from ScriptObject.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIActivationObject::GetLocalFieldGets the local declaration of a field that has the specified name. This method is used at compile time for error checking.
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: