SPGlobalAdmin.ExtendVirtualServerInWebFarm method (Uri, String, SPUrlZone, 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, _
zone As SPUrlZone, _
bAllowAnonymous As Boolean, _
bEnsureNTLM As Boolean _
) As SPVirtualServer
'用途
Dim instance As SPGlobalAdmin
Dim uri As Uri
Dim virtualServerName As String
Dim zone As SPUrlZone
Dim bAllowAnonymous As Boolean
Dim bEnsureNTLM As Boolean
Dim returnValue As SPVirtualServer
returnValue = instance.ExtendVirtualServerInWebFarm(uri, _
virtualServerName, zone, 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,
SPUrlZone zone,
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字串,會指定包含內容資料庫以用於延伸的伺服器虛擬伺服器的名稱。
zone
Type: Microsoft.SharePoint.Administration.SPUrlZone指定的 URL 區域SPUrlZone值。
bAllowAnonymous
Type: System.Boolean若要允許匿名存取 ; true否則,請false。
bEnsureNTLM
Type: System.Boolean若要使用 NTLM 驗證 ; true否則為 false。預設值為false。
傳回值
Type: Microsoft.SharePoint.Administration.SPVirtualServer
表示已擴充虛擬伺服器的SPVirtualServer物件。