Compartilhar via


Web.DeleteObject Method

Deletes the Web site.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Sub DeleteObject
'Usage
Dim instance As Web

instance.DeleteObject()
[RemoteAttribute]
public void DeleteObject()

Exceptions

Exception Condition
SPException

The current site is the top-level site. Error code: -2146232832.

See Also

Reference

Web Class

Web Members

Microsoft.SharePoint.Client Namespace