SPGlobalAdmin.UnextendVirtualServer Method (SPVirtualServer, Boolean)

NOTE: This API is now obsolete.

To remove SharePoint Foundation from an Internet Information Services (IIS) Web site, remove the IISSettings object from the Web application that the site is serving, and call the Unprovision method of the SPWebApplication class. (In Windows SharePoint Services 2.0 the UnextendVirtualServer method removed SharePoint Foundation from 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("To remove SharePoint from an IIS Web Site, remove the IISSettings object from the Web application that the site is serving, and call SPWebApplication.Unprovision().",  _
    False)> _
Public Sub UnextendVirtualServer ( _
    vs As SPVirtualServer, _
    bDropContentDB As Boolean _
)
'Usage
Dim instance As SPGlobalAdmin
Dim vs As SPVirtualServer
Dim bDropContentDB As Boolean

instance.UnextendVirtualServer(vs, bDropContentDB)
[ObsoleteAttribute("To remove SharePoint from an IIS Web Site, remove the IISSettings object from the Web application that the site is serving, and call SPWebApplication.Unprovision().", 
    false)]
public void UnextendVirtualServer(
    SPVirtualServer vs,
    bool bDropContentDB
)

Parameters

  • bDropContentDB
    Type: System.Boolean

    true to also delete the content database; otherwise, false.

See Also

Reference

SPGlobalAdmin Class

SPGlobalAdmin Members

UnextendVirtualServer Overload

Microsoft.SharePoint.Administration Namespace