共用方式為


CreateAdminVirtualServer Method

The CreateAdminVirtualServer method of the SPGlobalAdmin class creates an administration virtual server based on a new or existing application pool in Microsoft Internet Information Services (IIS).

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. This parameter is required only if the bConfigurableAppPoolAccount parameter contains true.

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

Return Value

An absolute URI that represents the new administration virtual server.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security