<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252"> <TITLE>ASP Built-in Objects</TITLE> <SCRIPT LANGUAGE="JavaScript"> <!-- TempString = navigator.appVersion if (navigator.appName == "Microsoft Internet Explorer"){ // Check to see if browser is Microsoft if (TempString.indexOf ("4.") >= 0){ // Check to see if it is IE 4 document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">'); } else { document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">'); } } else if (navigator.appName == "Netscape") { // Check to see if browser is Netscape document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">'); } else document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">'); //--> </script> <SCRIPT LANGUAGE="VBScript"> <!-- Sub Window_OnLoad() Dim frmContents On Error Resume Next If Not Parent Is Nothing Then Set frmContents = Parent.Contents If Not frmContents Is Nothing Then frmContents.Window.TOCSynch_Click End If End If End Sub //--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information"> <META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'> <META NAME="MS.LOCALE" CONTENT="EN-US"> <META NAME="MS-IT-LOC" Content="Internet Information Services"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1><A NAME="_asp_built-in_objects_"></A><SUP></SUP>ASP Built-in Objects </H1> <P>Active Server Pages (ASP) implements classes that enable your component to access the properties and methods of the ASP built-in objects. The <B>ObjectContext</B> 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.</P> <P>The following table lists the built-in object classes:</P> <TABLE border=0 cellpadding=5 cols=2 frame=box rules=all> <TR VALIGN="top"> <TD class=blue width=38%><B>Class</B></TD> <TD class=blue width=62%><B>Use to</B></TD> </TR> <TR VALIGN="top"> <TD width=38%><A HREF="/iishelp/iis/htm/asp/vbob8zw4.htm"><B>Application Object</B></A></TD> <TD width=62%>Calls the methods and properties of the <A HREF="/iishelp/iis/htm/asp/vbob8zw4.htm"><B>Application Object</B></A>.</TD> </TR> <TR VALIGN="top"> <TD width=38%><A HREF="/iishelp/iis/htm/asp/vbob1dtg.htm"><B>ASPError Object</B></A></TD> <TD width=62%>Calls the methods and properties of the <A HREF="/iishelp/iis/htm/asp/vbob1dtg.htm"><B>ASPError Object</B></A>.</TD> </TR> <TR VALIGN="top"> <TD width=38%><A HREF="/iishelp/iis/htm/asp/vbob554k.htm"><B>ObjectContext Object</B></A></TD> <TD width=62%>Returns the built-in objects and provide methods used in transaction processing.</TD> </TR> <TR VALIGN="top"> <TD width=38%><A HREF="/iishelp/iis/htm/asp/vbob5ulw.htm"><B>Request Object</B></A></TD> <TD width=62%>Calls the methods and properties of the <A HREF="/iishelp/iis/htm/asp/vbob5ulw.htm"><B>Request Object</B></A>.</TD> </TR> <TR VALIGN="top"> <TD width=38%><A HREF="/iishelp/iis/htm/asp/vbob5sj8.htm"><B>Response Object</B></A></TD> <TD width=62%>Calls the methods and properties of the <A HREF="/iishelp/iis/htm/asp/vbob5sj8.htm"><B>Response Object</B></A>.</TD> </TR> <TR VALIGN="top"> <TD width=38%>ScriptingContext</TD> <TD width=62%>Returns the built-in objects: <A HREF="/iishelp/iis/htm/asp/vbob8zw4.htm"><B>Application Object</B></A>, <A HREF="/iishelp/iis/htm/asp/vbob5ulw.htm"><B>Request Object</B></A>, <A HREF="/iishelp/iis/htm/asp/vbob5sj8.htm"><B>Response Object</B></A>, <A HREF="/iishelp/iis/htm/asp/vbob7838.htm"><B>Server Object</B></A>, or <A HREF="/iishelp/iis/htm/asp/vbob12d0.htm"><B>Session Object</B></A>. This is an obsolete approach. You should use <B>ObjectContext</B> instead.</TD> </TR> <TR VALIGN="top"> <TD width=38%><A HREF="/iishelp/iis/htm/asp/vbob7838.htm"><B>Server Object</B></A></TD> <TD width=62%>Calls the methods and properties of the <A HREF="/iishelp/iis/htm/asp/vbob7838.htm"><B>Server Object</B></A>.</TD> </TR> <TR VALIGN="top"> <TD width=38%><A HREF="/iishelp/iis/htm/asp/vbob12d0.htm"><B>Session Object</B></A></TD> <TD width=62%>Calls the methods and properties of the <A HREF="/iishelp/iis/htm/asp/vbob12d0.htm"><B>Session Object</B></A>.</TD> </TR> </TABLE><BR> <P>To use the <B>ObjectContext</B> and built-in objects in a Visual Basic component, you must include a reference to the Microsoft<sup>®</sup> ASP Object Library in your Visual Basic project.</P> <hr class="iis" size="1"> <p align="center"><em><a href="../../../common/colegal.htm">© 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p> </BODY> </HTML>