共用方式為


SPGlobalAdmin.SetAdminPortAppPool method

NOTE: This API is now obsolete.

使用SPAdministrationWebApplication.Local傳回管理 Web 應用程式,透過此變更應用程式集區。(在Windows SharePoint Services 2.0SetAdminPortAppPool方法指定管理伺服器應用程式集區在網際網路資訊服務 (IIS))。

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

Syntax

'宣告
<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 _
)
'用途
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
)

參數

  • bCreateNewAppPool
    Type: System.Boolean

    若要建立的應用程式集區 ; true否則,請false。

  • strAppPoolId
    Type: System.String

    指定應用程式集區識別碼的字串。

  • bConfigurableAppPoolAccount
    Type: System.Boolean

    若要指定的應用程式集區帳戶是可設定 ; true否則,請false。

  • strAppPoolUserName
    Type: System.String

    會指定應用程式集區的 「 管理員 」 帳戶的使用者名稱的字串。只有當bConfigurableAppPoolAccount參數包含true,則需要參數。

  • strAppPoolPassword
    Type: System.String

    指定應用程式集區的 「 管理員 」 帳戶的密碼字串。只有當bConfigurableAppPoolAccount參數包含true,則需要參數。

請參閱

參照

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace