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 SharePoint Foundation deployment, and is maintained for backward compatibility.)
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<ObsoleteAttribute("SPGlobalAdmin.VirtualServers is obsolete. Use SPWebService.ContentService.WebApplications instead.", _
False)> _
Public ReadOnly Property VirtualServers As SPVirtualServerCollection
Get
'Usage
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.