ApplicationHost.CreateApplicationHost(Type, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates and configures an application ___domain for hosting ASP.NET.
public:
static System::Object ^ CreateApplicationHost(Type ^ hostType, System::String ^ virtualDir, System::String ^ physicalDir);
public static object CreateApplicationHost(Type hostType, string virtualDir, string physicalDir);
static member CreateApplicationHost : Type * string * string -> obj
Public Shared Function CreateApplicationHost (hostType As Type, virtualDir As String, physicalDir As String) As Object
Parameters
- hostType
- Type
The name of a user-supplied class to be created in the new application ___domain.
- virtualDir
- String
The virtual directory for the application ___domain; for example, /myapp.
- physicalDir
- String
The physical directory for the application ___domain where ASP.NET pages are located; for example, c:\mypages.
Returns
An instance of a user-supplied class used to marshal calls into the newly created application ___domain.
Exceptions
The Web host computer is not running the Windows NT platform or a Coriolis environment.