Visual Basic Object Model

Active Server Pages (ASP) implements classes that enable your component to access the properties and methods of the ASP built-in objects. The ObjectContext object exposes 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
Application Calls the methods and properties of the Application object.
ASPError Object Calls the methods and properties of the ASPError object.
ObjectContext Returns the built-in objects and provide methods used in transaction processing.
Request Calls the methods and properties of the Request object.
Response Calls the methods and properties of the Response object.
ScriptingContext Returns the built-in objects: Application, Request, Response, Server, or Session. This is an obsolete approach. You should use ObjectContext instead.
Server Calls the methods and properties of the Server object.
Session Calls the methods and properties of the Session object.

To use the ObjectContext and built-in objects in a Visual Basic component, you must include a reference to the Microsoft® ASP Object Library in your Visual Basic project.

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