Partager via


IIsWebDirectory.AppCreate2 (ADSI)

The AppCreate2 method creates a new Web application that will run in-process, out-of-process, or in a process pool, or reconfigures an existing application.

objIIsWebDirectory.AppCreate2(
  lAppMode As LONG
)

Parameters

  • lAppMode
    [in] Long integer that specifies whether the application being created is to run in-process (0), out-of-process (1), or in a pooled process (2). If the application already exists and is running, changing the value of this flag will cause the application definition to be deleted and a new application created to run in the specified process space.

Return Values

This method has no return values.

Example Code

<%  
  Dim DirObj  
  Const INPROC = 0  
  Const OUTPROC = 1  
  Const POOLED = 2  
  Set DirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppDir")  
  'Create the application in-process.  
  DirObj.AppCreate2 POOLED  
%>  

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

See Also

Concepts

IIsWebDirectory (ADSI)

IIsWebVirtualDir (ADSI)

Using ADSI to Configure IIS