Name

ApplicationHost

Synopsis

This class exposes a single shared CreateApplicationHost() method, which allows you to create an application domain that will be used to process ASP.NET requests. This method accepts three parameters—the hostType (your request-handling class, which will be created in the new domain), virtualDir (the virtual directory for the application domain, such as “/MyApp”), and physicalDir (the physical directory for the application domain where the ASP.NET pages are located, such as “c:\MyApp”). The CreateApplicationHost() method returns the live instance of the hostType class.

Public NotInheritable Class ApplicationHost
                  ' Public Shared Methods
   Public Shared Function CreateApplicationHost(
        ByVal hostType As Type, ByVal virtualDir As String, 
        ByVal physicalDir As String) As Object  
End Class

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.