SPVirtualServer constructor
NOTE: This API is now obsolete.
已過時。初始化SPVirtualServer類別的新執行個體。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.", _
False)> _
Public Sub New ( _
application As SPWebApplication, _
zone As SPUrlZone _
)
'用途
Dim application As SPWebApplication
Dim zone As SPUrlZone
Dim instance As New SPVirtualServer(application, _
zone)
[ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.",
false)]
public SPVirtualServer(
SPWebApplication application,
SPUrlZone zone
)
參數
application
Type: Microsoft.SharePoint.Administration.SPWebApplicationSPWebApplication物件,代表與虛擬伺服器相關聯的 Web 應用程式。
zone
Type: Microsoft.SharePoint.Administration.SPUrlZone指定的區域SPUrlZone值。