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.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應