SetAdminPortAppPool Method

The SetAdminPortAppPool method of the SPGlobalAdmin class specifies a new or existing application pool in Microsoft Internet Information Services (IIS) for the administration server.

Parameters

bCreateNewAppPool  true to create an application pool; otherwise, false.

strAppPoolId   A string that specifies an ID for the application pool.

bConfigurableAppPoolAccount   true to specify that the application pool account is configurable; otherwise, false.

strAppPoolUserName   A string that specifies a user name for the administrator account of the application pool. The strAppPoolUserName parameter is required only if bConfigurableAppPoolAccount contains true.

strAppPoolPassword   A string that specifies a password for the administrator account of the application pool. The strAppPoolPassword parameter is required only if bConfigurableAppPoolAccount contains true.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security