ערוך

שתף באמצעות


ApplicationHost.CreateApplicationHost(Type, String, String) Method

Definition

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.

Applies to