SPVirtualServer Constructor
NOTE: This API is now obsolete.
Obsolete. Initializes a new instance of the SPVirtualServer class.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ObsoleteAttribute("Use SPWebApplication or SPIisSettings instead.", _
False)> _
Public Sub New ( _
application As SPWebApplication, _
zone As SPUrlZone _
)
'Usage
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
)
Parameters
application
Type: Microsoft.SharePoint.Administration.SPWebApplicationAn SPWebApplication object that represents the Web application that is associated with the virtual server.
zone
Type: Microsoft.SharePoint.Administration.SPUrlZoneAn SPUrlZone value that specifies the zone.