Share via


SPGlobalAdmin.SetAdminPortAppPool method

NOTE: This API is now obsolete.

Use SPAdministrationWebApplication.Local to return the administration Web application through which to change the application pool. (In Windows SharePoint Services 2.0 the SetAdminPortAppPool method specified an application pool in Internet Information Services (IIS) for the administration server.)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use SPAdministrationWebApplication.Local to change this setting.",  _
    False)> _
Public Sub SetAdminPortAppPool ( _
    bCreateNewAppPool As Boolean, _
    strAppPoolId As String, _
    bConfigurableAppPoolAccount As Boolean, _
    strAppPoolUserName As String, _
    strAppPoolPassword As String _
)
'Usage
Dim instance As SPGlobalAdmin
Dim bCreateNewAppPool As Boolean
Dim strAppPoolId As String
Dim bConfigurableAppPoolAccount As Boolean
Dim strAppPoolUserName As String
Dim strAppPoolPassword As String

instance.SetAdminPortAppPool(bCreateNewAppPool, _
    strAppPoolId, bConfigurableAppPoolAccount, _
    strAppPoolUserName, strAppPoolPassword)
[ObsoleteAttribute("Use SPAdministrationWebApplication.Local to change this setting.", 
    false)]
public void SetAdminPortAppPool(
    bool bCreateNewAppPool,
    string strAppPoolId,
    bool bConfigurableAppPoolAccount,
    string strAppPoolUserName,
    string strAppPoolPassword
)

Parameters

  • bCreateNewAppPool
    Type: System.Boolean

    true to create an application pool; otherwise, false.

  • strAppPoolId
    Type: System.String

    A string that specifies an ID for the application pool.

  • bConfigurableAppPoolAccount
    Type: System.Boolean

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

  • strAppPoolUserName
    Type: System.String

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

  • strAppPoolPassword
    Type: System.String

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

See also

Reference

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace