JSFunctionAttributeEnum Enumeration
.NET Framework 2.0
Used with the JSFunctionAttribute custom attribute to annotate the calling conventions of functions generated by the JScript compiler. The parameters associated with HasArguments, HasEngine, and HasThisObject are implicit and are automatically provided by the JScript runtime when the function is called from JScript code.
Assembly: Microsoft.JScript (in microsoft.jscript.dll)
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: Microsoft.JScriptAssembly: Microsoft.JScript (in microsoft.jscript.dll)
'Declaration <ComVisibleAttribute(True)> _ <FlagsAttribute> _ <GuidAttribute("BA5ED019-F669-3C35-93AC-3ABF776B62B3")> _ Public Enumeration JSFunctionAttributeEnum 'Usage Dim instance As JSFunctionAttributeEnum
/** @attribute ComVisibleAttribute(true) */
/** @attribute FlagsAttribute() */
/** @attribute GuidAttribute("BA5ED019-F669-3C35-93AC-3ABF776B62B3") */
public enum JSFunctionAttributeEnum
ComVisibleAttribute(true) FlagsAttribute GuidAttribute("BA5ED019-F669-3C35-93AC-3ABF776B62B3") public enum JSFunctionAttributeEnum
| Member name | Description | |
|---|---|---|
| ClassicFunction | Aggregate that sets HasArguments, HasEngine, and HasThisObject. | |
| ClassicNestedFunction | Aggregate that sets ClassicFunction and NestedFunction. | |
| HasArguments | The third parameter of the function is of type Object. The caller should pass in an object that implements the JScript arguments object: typically an instance of ArgumentsObject. The JScript runtime assumes that if HasArguments is set, then HasStackFrame and HasThisObject are also set. | |
| HasEngine | The second parameter of the function is of type VsaEngine. The caller should pass in an instance of VsaEngine from which the function can retrieve the JScript (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/jscript7/html/jsoriObjects.asp) and runtime infrastructure. The JScript runtime assumes that if HasEngine is set then HasThisObject is also set. | |
| HasStackFrame | Copies its local variables into a stack frame object maintained by the JScript runtime before making a call out. It copies the variables back from the stack frame object to its locals when control is returned to the function. This flag is set on functions that contain nested functions that access the parent function's locals. | |
| HasThisObject | The first parameter of the function is of type Object. The caller should pass in an instance of the object that represents the JScript object for the function. | |
| HasVarArgs | The function takes a variable number of arguments. The last parameter is of type array of Object, which holds any arguments that are explicitly specified. | |
| IsExpandoMethod | An expando Modifier method defined on a class. | |
| IsInstanceNestedClassConstructor | Constructor for a nested instance class. The first parameter of the function an instance of the parent class. | |
| IsNested | Nested in another JScript function. | |
| NestedFunction | Not used. | |
| None | A regular .NET method with no special calling conventions. Typically not used as in this case the JSFunctionAttribute is not emitted. |
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: