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.Booleantrue to remove the Web application from all local IIS Web sites; otherwise, false.