共用方式為


SPGlobalAdmin.DeleteAdminVirtualServer Method

NOTE: This API is now obsolete.

Use the Unprovision method of the SPWebServiceInstance class to remove the Web service from the server. (In Windows SharePoint Services 2.0, the DeleteAdminVirtualServer method was used to delete the administration 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("DeleteAdminVirtualServer is obsolete.  Call SPWebServiceInstance.LocalAdministration.Unprovision() instead.",  _
    False)> _
Public Sub DeleteAdminVirtualServer
'Usage
Dim instance As SPGlobalAdmin

instance.DeleteAdminVirtualServer()
[ObsoleteAttribute("DeleteAdminVirtualServer is obsolete.  Call SPWebServiceInstance.LocalAdministration.Unprovision() instead.", 
    false)]
public void DeleteAdminVirtualServer()

See Also

Reference

SPGlobalAdmin Class

SPGlobalAdmin Members

Microsoft.SharePoint.Administration Namespace