Метод UserCollection.Remove
Removes the specified user from the collection.
Пространство имен: 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 Remove ( _
user As User _
)
'Применение
Dim instance As UserCollection
Dim user As User
instance.Remove(user)
public void Remove(
User user
)
Параметры
user
Тип: Microsoft.SharePoint.Client.UserA User object that represents the user.
It must not be пустая ссылка (Nothing в Visual Basic).
Исключения
Исключение | Условие |
---|---|
[Microsoft.SharePoint.SPException] | User cannot be found, or cannot modify the UserCollection. Error code: -2146232832. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |