Built-in Object Interfaces for Visual Basic

Active Server Pages implements classes that enable your component to access the properties and methods of the ASP built-in objects. The ScriptingContext class contains methods that return an interface to one of the ASP built-in objects. Your component can use these interfaces to access the methods and properties of the built-in objects.

The following table lists the built-in object classes:

Class

Use to

ScriptingContext

Return one of the built-in object interfaces: Application, Request, Response, Server, or Session.

Application

Call the methods and properties of the Application object.

Request

Call the methods and properties of the Request object.

Response

Call the methods and properties of the Response object.

Server

Call the methods and properties of the Server object.

Session

Call the methods and properties of the Session object.

To use the ScriptingContext and built-in object interfaces in a Visual Basic component, you must load the Microsoft Active Server Pages Object Library (asp.dll) into your available references. This file is installed with the Active Server Pages feature in the directory \Inetsrv\Asp\.

For more information about the built-in objects see the Object Reference.

Note If you are using Microsoft® Visual Basic® 5.0, you should create your component as an ActiveX DLL and not an ActiveX Control.


© Microsoft Corporation. All rights reserved.