SPGlobalAdmin.VirtualServers Property
NOTE: This API is now obsolete.
Use the WebApplications property of the SPWebService class to get the collection of Web applications in the Web service instead. (In Windows SharePoint Services 2.0, the VirtualServerNames property got the collection of virtual server objects in the Windows SharePoint Services deployment, and is maintained for backward compatibility.)
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
<ObsoleteAttribute("SPGlobalAdmin.VirtualServers is obsolete. Use SPWebService.ContentService.WebApplications instead.", _
False)> _
Public ReadOnly Property VirtualServers As SPVirtualServerCollection
Get
Dim instance As SPGlobalAdmin
Dim value As SPVirtualServerCollection
value = instance.VirtualServers
[ObsoleteAttribute("SPGlobalAdmin.VirtualServers is obsolete. Use SPWebService.ContentService.WebApplications instead.",
false)]
public SPVirtualServerCollection VirtualServers { get; }
Property Value
Type: Microsoft.SharePoint.Administration.SPVirtualServerCollection
An SPVirtualServerCollection object that represents the virtual servers.