APGen Documentation Previous Topic: Logon.Domain Next Topic: ObjectContext.Item Parent Topic: APGen Object Reference    APGen Object Reference
ObjectContext Object
See Also:

The ObjectContext object provides access to the MTS or COM+ ObjectContext that the APG script may be running in.

Syntax

ObjectContext[ .property | (name) ]

Collection Parameters

name A string representing a value stored in the COM+/MTS ObjectContext.  Shorthand for Item.

Properties

Item Variant Returns a named value or object associated with the current ObjectContext.
InContext True/False Returns True if the APG script is running in a MTS or COM+ ObjectContext.

Notes

The ObjectContext object is useful when running an APG script within ASP, or from another application that stores values in a MTS or COM+ ObjectContext.

For an example APG script that uses ObjectContext to access ASP objects, see Accessing ASP Objects in Active Server Pages.