IIsWebDirectory.AppCreate (ADSI)
The AppCreate method creates a new Web application, or reconfigures an existing application.
objIIsWebDirectory.AppCreate(
bSetInProcFlag As VARIANT_BOOL
)
Parameters
- bSetInProcFlag
[in] A VARIANT_BOOL that specifies whether the application being created is to run in-process (TRUE) or out-of-process (FALSE). If the application already exists and is running in-process, specifying this flag as FALSE will cause the application definition to be deleted and a new application created to run out-of-process. If the application already exists and is running out-of-process, specifying this flag as TRUE will cause the application definition to be deleted and a new application created to run in-process. If the application exists and the setting of bSetInProcFlag matches the application's existing status, then this method will cause no change to the application definition.
Return Values
This method has no return values.
Example Code
<%
Dim DirObj
Const INPROC = True
Const OUTPROC = False
Set DirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir")
'Create an application in-process.
DirObj.AppCreate INPROC
%>
Requirements
Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Product: IIS