Freigeben über


SPGlobalAdmin.CreateAdminVirtualServer-Methode

HINWEIS: Diese API ist veraltet.

Die Webanwendung wird erstellt, wenn die Server-Farm erstellt wird. Um die Zentraladministrations-Website auf einem Server bereitgestellt werden soll, aktivieren Sie stattdessen den Zentraladministrations-Webdienst. (In Windows SharePoint Services 2.0 die CreateAdminVirtualServer -Methode erstellt einen virtuellen Administrationsserver und wird für die Abwärtskompatibilität beibehalten.)

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

Syntax

'Declaration
<ObsoleteAttribute("The Administration Web application is now created at the same time as the server farm.  To provision the central administration site on a server, enable the central administration web service instance.",  _
    False)> _
Public Function CreateAdminVirtualServer ( _
    bCreateNewAppPool As Boolean, _
    strAppPoolId As String, _
    bConfigurableAppPoolAccount As Boolean, _
    strAppPoolUserName As String, _
    strAppPoolPassword As String _
) As Uri
'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
Dim returnValue As Uri

returnValue = instance.CreateAdminVirtualServer(bCreateNewAppPool, _
    strAppPoolId, bConfigurableAppPoolAccount, _
    strAppPoolUserName, strAppPoolPassword)
[ObsoleteAttribute("The Administration Web application is now created at the same time as the server farm.  To provision the central administration site on a server, enable the central administration web service instance.", 
    false)]
public Uri CreateAdminVirtualServer(
    bool bCreateNewAppPool,
    string strAppPoolId,
    bool bConfigurableAppPoolAccount,
    string strAppPoolUserName,
    string strAppPoolPassword
)

Parameter

  • bCreateNewAppPool
    Typ: System.Boolean

    Windows SharePoint Services 3.0 Informationen in der Konfigurationsdatenbank verwendet, eine administrative Webanwendung zu erstellen und dieser Parameter ignoriert. In Windows SharePoint Services 2.0, true zum Erstellen eines Anwendungspools; andernfalls false.

  • strAppPoolId
    Typ: System.String

    Windows SharePoint Services 3.0 Informationen in der Konfigurationsdatenbank verwendet, eine administrative Webanwendung zu erstellen und dieser Parameter ignoriert. In Windows SharePoint Services 2.0, eine Zeichenfolge, die eine ID für den Anwendungspool angibt.

  • bConfigurableAppPoolAccount
    Typ: System.Boolean

    Windows SharePoint Services 3.0 Informationen in der Konfigurationsdatenbank verwendet, eine administrative Webanwendung zu erstellen und dieser Parameter ignoriert. In Windows SharePoint Services 2.0, true , um anzugeben, dass das Anwendungspoolkonto konfiguriert werden kann; andernfalls false.

  • strAppPoolUserName
    Typ: System.String

    Windows SharePoint Services 3.0 Informationen in der Konfigurationsdatenbank verwendet, eine administrative Webanwendung zu erstellen und dieser Parameter ignoriert. In Windows SharePoint Services 2.0, eine Zeichenfolge, die einen Benutzernamen für das Administratorkonto des Anwendungspools angibt. Dieser Parameter ist erforderlich, nur, wenn der Parameter bConfigurableAppPoolAccounttrueenthält.

  • strAppPoolPassword
    Typ: System.String

    Windows SharePoint Services 3.0 Informationen in der Konfigurationsdatenbank verwendet, eine administrative Webanwendung zu erstellen und dieser Parameter ignoriert. In Windows SharePoint Services 2.0, eine Zeichenfolge, die ein Kennwort für das Administratorkonto des Anwendungspools angibt. Dieser Parameter ist erforderlich, nur, wenn der Parameter bConfigurableAppPoolAccounttrueenthält.

Rückgabewert

Typ: System.Uri
Ein absoluter URI, der dem neuen virtuellen Verwaltungsserver darstellt.

Siehe auch

Referenz

SPGlobalAdmin Klasse

SPGlobalAdmin-Member

Microsoft.SharePoint.Administration-Namespace