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)
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.UriAn absolute URI that specifies the virtual server.
Return value
Type: Microsoft.SharePoint.Administration.SPVirtualServer
An SPVirtualServer object that represents the virtual server.