AppCreate

[This is preliminary documentation and subject to change.]

You can use the AppCreate method of the IIsWebVirtualDir object to create a Web application definition and mark it as running in-process or out-of-process. If an application already exists at the specified path, you can use this method to reconfigure the application from in-process to out-of-process or vice versa.

Syntax

object.AppCreate InProcFlag 
 

Parts

object
Contains the IIsWebVirtualDir object, usually as a result of a previous GetObject operation.

Parameters

InProcFlag
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 InProcFlag matches the application's existing in-process/out-of-process status then this method will cause no change to the application definition.

Code Example

Dim VDirObj 
Const INPROC = True 
Const OUTPROC = False 
Set VDirObj = GetObject("IIS://LocalHost/W3SVC/1/ROOT/MyAppVDir") 
' Create an application in-process 
VDirObj.AppCreate INPROC 
 

See Also

AppDelete AppDeleteRecursive AppUnload
AppUnloadRecursive AppGetStatus AppDisable
AppDisableRecursive AppEnable AppEnableRecursive


© 1997 by Microsoft Corporation. All rights reserved.