Non-creatable.
NAME |
TYPE |
DESCRIPTION |
---|---|---|
AuditProvider |
property |
Returns an AuditProvider object. |
The GlobalState object is similar to the ScriptState object, but with the following differences:
It is available only in JScript.
It stores the state of the object only as long as the agent process is active.
It can store objects of any type.
if ( !GlobalState.Item("shell") )
{
GlobalState.Item("shell") = new ActiveXObject("WScript.Shell");
}
#TRACE 40 GlobalState.Item("shell").Value.ExpandEnvironmentStrings("%TMP%")
Creatable.
NAME |
TYPE |
DESCRIPTION |
---|---|---|
RecordKey |
property |
Has integral type |
Time |
property |
Has Date type |
Values |
property |
Collection of user-supplied properties |
x = new Position;
x.RecordKey = 12;
x.Time = new Date();
x.Values.prop1 = "val1";
x.Values.prop2 = new Date();
The Reference object is a wrapper used mainly for passing the out parameter to COM methods. To create a call, use the function CreateReference(value) where value is an optional argument that specifies the start value. This object is available when you use the ECMAScript or JScript object model.
You cannot correctly reference a property if at least one of its parameters is [in, out].
HRESULT Increment([in, out] LONG * param);
var ref = CreateReference(5);
var obj = new ActiveXObject("MyObject");
obj.Increment(ref);
x = ref; // x = 6;
ECMAScript example:
var ref = CreateReference(5);
var obj = new ActiveXObject("MyObject");
DispInvoke(obj, "Increment", ref);
x = ref.RefOn; // x = 6;
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Términos de uso Privacidad Cookie Preference Center