Share via


SPWebApplication.Unprovision Method (Boolean)

Unprovisions the Web application and optionally removes the application from all local Internet Information Services (IIS) Web sites.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub Unprovision ( _
    deleteWebSites As Boolean _
)
'Usage
Dim instance As SPWebApplication
Dim deleteWebSites As Boolean

instance.Unprovision(deleteWebSites)
public void Unprovision(
    bool deleteWebSites
)

Parameters

  • deleteWebSites
    Type: System.Boolean

    true to remove the Web application from all local IIS Web sites; otherwise, false.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Unprovision Overload

Microsoft.SharePoint.Administration Namespace