Метод RoleDefinition.DeleteObject
Deletes the role definition.
Пространство имен: Microsoft.SharePoint.Client
Сборки: Microsoft.SharePoint.Client.Silverlight (в Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (в Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (в Microsoft.SharePoint.Client.dll)
Синтаксис
'Декларация
Public Sub DeleteObject
'Применение
Dim instance As RoleDefinition
instance.DeleteObject()
public void DeleteObject()
Исключения
Исключение | Условие |
---|---|
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. |