Share via


SPSiteCollection.VirtualServer property

NOTE: This API is now obsolete.

Gets the parent virtual server for the site collection.

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

Syntax

'Declaration
<ObsoleteAttribute> _
Public ReadOnly Property VirtualServer As SPVirtualServer
    Get
'Usage
Dim instance As SPSiteCollection
Dim value As SPVirtualServer

value = instance.VirtualServer
[ObsoleteAttribute]
public SPVirtualServer VirtualServer { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPVirtualServer
Returns SPVirtualServer.

See also

Reference

SPSiteCollection class

SPSiteCollection members

Microsoft.SharePoint.Administration namespace