共用方式為


SPGlobalAdmin.OpenVirtualServer Method

NOTE: This API is now obsolete.

Use the Lookup method of the SPWebApplication class to return a specified Web application instead. (In Windows SharePoint Services 2.0 the OpenVirtualServer method opened the virtual server, 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("OpenVirtualServer is obsolete.  Use SPWebApplication.Lookup() instead.",  _
    False)> _
Public Function OpenVirtualServer ( _
    uri As Uri _
) As SPVirtualServer
'Usage
Dim instance As SPGlobalAdmin
Dim uri As Uri
Dim returnValue As SPVirtualServer

returnValue = instance.OpenVirtualServer(uri)
[ObsoleteAttribute("OpenVirtualServer is obsolete.  Use SPWebApplication.Lookup() instead.", 
    false)]
public SPVirtualServer OpenVirtualServer(
    Uri uri
)

Parameters

  • uri
    Type: System.Uri

    An absolute URI that specifies the virtual server.

Return Value

Type: Microsoft.SharePoint.Administration.SPVirtualServer
An SPVirtualServer object that represents the virtual server.

See Also

Reference

SPGlobalAdmin Class

SPGlobalAdmin Members

Microsoft.SharePoint.Administration Namespace