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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈