Share via


IIsWebDirectory.AppCreate3 (ADSI)

The AppCreate3 method creates a new Web application, configures what type of process to run it in, and assigns it to an application pool, optionally creating the application pool.

Note

This method requires IIS 6.0 or later if you create an application pool or assign the application pool to a pool other than the default.

objIIsWebDirectory.AppCreate3(
  lAppMode As LONG,
  bstrAppPooI As VARIANT,
  bCreatePool As VARIANT
)

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.

  • bstrAppPooI
    [in] A string that specifies the friendly name of the application pool you want this application to be a part of.

  • bCreatePool
    [in] A Boolean value that specifies if you want to create the application pool if it does not already exist.

Return Values

This method has no return values.

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