SPGlobalAdmin.OpenVirtualServer method
NOTE: This API is now obsolete.
使用SPWebApplication類別之Lookup方法而傳回指定的 Web 應用程式。(在Windows SharePoint Services 2.0OpenVirtualServer方法開啟虛擬伺服器,和維護回溯相容性。)
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("OpenVirtualServer is obsolete. Use SPWebApplication.Lookup() instead.", _
False)> _
Public Function OpenVirtualServer ( _
uri As Uri _
) As SPVirtualServer
'用途
Dim instance As SPGlobalAdmin
Dim uri As Uri
Dim returnValue As SPVirtualServer
returnValue = instance.OpenVirtualServer(uri)
[ObsoleteAttribute("OpenVirtualServer is obsolete. Use SPWebApplication.Lookup() instead.",
false)]
public SPVirtualServer OpenVirtualServer(
Uri uri
)
參數
uri
Type: System.Uri指定虛擬伺服器絕對 URI。
傳回值
Type: Microsoft.SharePoint.Administration.SPVirtualServer
SPVirtualServer 物件,代表虛擬伺服器。