다음을 통해 공유


PublishingWeb.Delete Method (Boolean)

Deletes the current PublishingWeb instance and potentially all sites in the subtree with a node in this PublishingWeb.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Sub Delete ( _
    recursive As Boolean _
)
'Usage
Dim instance As PublishingWeb
Dim recursive As Boolean

instance.Delete(recursive)
public void Delete(
    bool recursive
)

Parameters

  • recursive
    Type: System.Boolean

    true for a recursive delete; otherwise, false.

Remarks

After calling this method, you should call the Update method to save changes.

See Also

Reference

PublishingWeb Class

PublishingWeb Members

Delete Overload

Microsoft.SharePoint.Publishing Namespace

Delete