共用方式為


SPGlobalAdmin.ExtendVirtualServerInWebFarm method (Uri, String, Boolean, String, Boolean, String, String, Boolean, Boolean)

NOTE: This API is now obsolete.

若要擴充的 Web 應用程式,以新的網際網路資訊服務 (IIS) 網站,將新增至 IIS 設定,透過SPWebApplication類別的IisSettings屬性的新項目。SharePoint Foundation自動處理重複的伺服器陣列中其他電腦上的 Iis 網站。(在Windows SharePoint Services 2.0, ExtendVirtualServerInWebFarm方法延伸SharePoint Foundation,以在伺服器陣列中的虛擬伺服器和維護回溯相容性。)

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

Syntax

'宣告
<ObsoleteAttribute("To extend a web application to a new iis web site, add a new entry to SPWebApplication.IisSettings.  Duplicating IIS Web Sites on other machines in the farm is now handled automattically.",  _
    False)> _
Public Function ExtendVirtualServerInWebFarm ( _
    uri As Uri, _
    virtualServerName As String, _
    bCreateNewAppPool As Boolean, _
    appPoolId As String, _
    bConfigurableAppPoolAccount As Boolean, _
    appPoolUserName As String, _
    appPoolPassword As String, _
    bAllowAnonymous As Boolean, _
    bEnsureNTLM As Boolean _
) As SPVirtualServer
'用途
Dim instance As SPGlobalAdmin
Dim uri As Uri
Dim virtualServerName As String
Dim bCreateNewAppPool As Boolean
Dim appPoolId As String
Dim bConfigurableAppPoolAccount As Boolean
Dim appPoolUserName As String
Dim appPoolPassword As String
Dim bAllowAnonymous As Boolean
Dim bEnsureNTLM As Boolean
Dim returnValue As SPVirtualServer

returnValue = instance.ExtendVirtualServerInWebFarm(uri, _
    virtualServerName, bCreateNewAppPool, _
    appPoolId, bConfigurableAppPoolAccount, _
    appPoolUserName, appPoolPassword, _
    bAllowAnonymous, bEnsureNTLM)
[ObsoleteAttribute("To extend a web application to a new iis web site, add a new entry to SPWebApplication.IisSettings.  Duplicating IIS Web Sites on other machines in the farm is now handled automattically.", 
    false)]
public SPVirtualServer ExtendVirtualServerInWebFarm(
    Uri uri,
    string virtualServerName,
    bool bCreateNewAppPool,
    string appPoolId,
    bool bConfigurableAppPoolAccount,
    string appPoolUserName,
    string appPoolPassword,
    bool bAllowAnonymous,
    bool bEnsureNTLM
)

參數

  • uri
    Type: System.Uri

    虛擬伺服器,包括主機名稱、 連接埠號碼和自訂 URL 資訊絕對 URI。例如,如果 URI 是https://Server_Name:Port_Number/Sample_URL時的虛擬伺服器擴充Sample_URL , 是加入為之 url。

  • virtualServerName
    Type: System.String

    字串,會指定包含內容資料庫以用於延伸的伺服器虛擬伺服器的名稱。

  • bCreateNewAppPool
    Type: System.Boolean

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

  • appPoolId
    Type: System.String

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

  • bConfigurableAppPoolAccount
    Type: System.Boolean

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

  • appPoolUserName
    Type: System.String
    • 會指定應用程式集區的 「 管理員 」 帳戶的使用者名稱的字串。如果true,指定下列值之一:

    • NetworkService

    • LocalService

    • LocalSystem

  • appPoolPassword
    Type: System.String

    指定應用程式集區的 「 管理員 」 帳戶的密碼字串。此參數,則需要僅限參數設為true.

  • bAllowAnonymous
    Type: System.Boolean

    若要允許匿名存取 ; true否則,請false。

  • bEnsureNTLM
    Type: System.Boolean

    若要使用 NTLM 驗證 ; true否則為 false。預設值為false。

傳回值

Type: Microsoft.SharePoint.Administration.SPVirtualServer
表示已擴充虛擬伺服器的SPVirtualServer物件。

請參閱

參照

SPGlobalAdmin class

SPGlobalAdmin members

ExtendVirtualServerInWebFarm overload

Microsoft.SharePoint.Administration namespace