共用方式為


SPWebApplication.UnprovisionGlobally Method (Boolean)

Removes the Web application from all front-end Web servers and optionally removes the 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 UnprovisionGlobally ( _
    deleteIisWebSite As Boolean _
)
'Usage
Dim instance As SPWebApplication
Dim deleteIisWebSite As Boolean

instance.UnprovisionGlobally(deleteIisWebSite)
public void UnprovisionGlobally(
    bool deleteIisWebSite
)

Parameters

  • deleteIisWebSite
    Type: System.Boolean

    true to remove the IIS Web sites; otherwise, false.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

UnprovisionGlobally Overload

Microsoft.SharePoint.Administration Namespace