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)

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