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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기