PublishingWebCollection.Delete Method
Deletes a PublishingWeb object with the given URL from the parent PublishingWebobject of this collection.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Sub Delete ( _
url As String _
)
'Usage
Dim instance As PublishingWebCollection
Dim url As String
instance.Delete(url)
public void Delete(
string url
)
Parameters
url
Type: System.StringRepresents the site-relative URL to the PublishingWeb object.
Exceptions
Exception | Condition |
---|---|
[System.ArgumentNullException] | The url parameter cannot be a null reference (Nothing in Visual Basic) or empty. |
Remarks
This method wraps the [T:Microsoft.SharePoint.SPWebCollection.Delete(System.String)] method.