Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deletes the role definition.
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 RoleDefinition
instance.DeleteObject()
[RemoteAttribute]
public void DeleteObject()
Exceptions
| Exception | Condition |
|---|---|
| SPException | The role definition type is either Guest or Administrator. Error code: -1. |
| ArgumentException | The role definition is inherited from a parent site. Error code: -2147024809. Role definition is not part of a collection or site. Error code: -2147024809. |
| UnauthorizedAccessException | The current user does not have sufficient permissions to delete the role definition. Error code: -2147024891. |