SPGlobalAdmin.CreateAdminVirtualServer method
NOTE: This API is now obsolete.
建立伺服器陣列時,會建立 Web 應用程式。若要佈建在伺服器上的管理中心網站,請改用啟用管理中心 Web 服務。(在Windows SharePoint Services 2.0CreateAdminVirtualServer方法建立的管理虛擬伺服器,和維護回溯相容性。)
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<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
'用途
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
)
參數
bCreateNewAppPool
Type: System.BooleanWindows SharePoint Services 3.0使用在設定資料庫的資訊,來建立管理的 Web 應用程式,並會忽略此參數。在Windows SharePoint Services 2.0,以建立應用程式集區 ; true否則,請false。
strAppPoolId
Type: System.StringWindows SharePoint Services 3.0使用在設定資料庫的資訊,來建立管理的 Web 應用程式,並會忽略此參數。在Windows SharePoint Services 2.0,指定應用程式集區識別碼的字串。
bConfigurableAppPoolAccount
Type: System.BooleanWindows SharePoint Services 3.0使用在設定資料庫的資訊,來建立管理的 Web 應用程式,並會忽略此參數。在Windows SharePoint Services 2.0,以指定的應用程式集區帳戶是可設定 ; true否則,請false。
strAppPoolUserName
Type: System.StringWindows SharePoint Services 3.0使用在設定資料庫的資訊,來建立管理的 Web 應用程式,並會忽略此參數。在Windows SharePoint Services 2.0,會指定應用程式集區的 「 管理員 」 帳戶的使用者名稱的字串。只有當bConfigurableAppPoolAccount參數包含true,則需要此參數。
strAppPoolPassword
Type: System.StringWindows SharePoint Services 3.0使用在設定資料庫的資訊,來建立管理的 Web 應用程式,並會忽略此參數。在Windows SharePoint Services 2.0,指定應用程式集區的 「 管理員 」 帳戶的密碼字串。只有當bConfigurableAppPoolAccount參數包含true,則需要此參數。
傳回值
Type: System.Uri
代表新的管理虛擬伺服器絕對 URI。