다음을 통해 공유


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)

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.

See also

Reference

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace