SPGlobalAdmin.VirtualServers 属性
请注意:此 API 现在已过时。
使用SPWebService类的WebApplications属性改为 Web 服务中获取的 Web 应用程序的集合。(在Windows SharePoint Services 2.0, VirtualServerNames属性在SharePoint Foundation部署中,获得的虚拟服务器对象的集合和维护向后兼容性。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<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; }
属性值
类型:Microsoft.SharePoint.Administration.SPVirtualServerCollection
一个代表虚拟服务器的SPVirtualServerCollection对象。