共用方式為


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)
Available in Sandboxed Solutions: No

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