APGen Documentation Previous Topic: ObjectContext Object Next Topic: ObjectContext.InContext Parent Topic: ObjectContext Object    ObjectContext Object
ObjectContext.Item
See Also:

The ObjectContext.Item property returns named values or objects associated with the current MTS or COM+ ObjectContext.

Syntax

VBScript:

value = ObjectContext.Item(strName)
or
value = ObjectContext(strName)

JScript:

value = ObjectContext.Item(strName);
or
value = ObjectContext(strName);

Object

ObjectContext The ObjectContext object.

Parameters

strName A unique string name that corresponds to a value stored in the MTS/COM+ ObjectContext.

Return Value

value A Variant value stored in the MTS/COM+ ObjectContext.

Notes

Typically this property is used to access ASP objects in an APG script that is being run in ASP.  For an example see Executing APG Scripts in Active Server Pages.

If an APG script is run from a MTS or COM+ object that stores values or objects in the ObjectContext, this collection can also be used to obtain those values or objects.