Freigeben über


SPGlobalAdmin.SetAdminPortAppPool-Methode

HINWEIS: Diese API ist veraltet.

Verwenden Sie SPAdministrationWebApplication.Local , um die Webanwendung über die so ändern Sie den Anwendungspool zurückzugeben. (In Windows SharePoint Services 2.0 angegeben die SetAdminPortAppPool -Methode einen Anwendungspool in Internetinformationsdienste (Internet Information Services, IIS) für den Server der Zentraladministration.)

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
)

Parameter

  • bCreateNewAppPool
    Typ: System.Boolean

    true zum Erstellen eines Anwendungspools; andernfalls false.

  • strAppPoolId
    Typ: System.String

    Eine Zeichenfolge, die eine ID für den Anwendungspool angibt.

  • bConfigurableAppPoolAccount
    Typ: System.Boolean

    true , um anzugeben, dass das Anwendungspoolkonto konfiguriert werden kann; andernfalls false.

  • strAppPoolUserName
    Typ: System.String

    Eine Zeichenfolge, die einen Benutzernamen für das Administratorkonto des Anwendungspools angibt. Der Parameter ist erforderlich, nur, wenn der Parameter bConfigurableAppPoolAccounttrueenthält.

  • strAppPoolPassword
    Typ: System.String

    Eine Zeichenfolge, die ein Kennwort für das Administratorkonto des Anwendungspools angibt. Der Parameter ist erforderlich, nur, wenn der Parameter bConfigurableAppPoolAccounttrueenthält.

Siehe auch

Referenz

SPGlobalAdmin Klasse

SPGlobalAdmin-Member

Microsoft.SharePoint.Administration-Namespace