GroupCollection.Remove メソッド
Removes the specified group 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 ( _
group As Group _
)
'使用
Dim instance As GroupCollection
Dim group As Group
instance.Remove(group)
public void Remove(
Group group
)
パラメーター
group
型: Microsoft.SharePoint.Client.GroupA Group object that represents the group to be removed.
It must not be null.
例外
例外 | 条件 |
---|---|
SPDistributionGroupException | Occurs when deletion of DistributionGroup fails, or approval denied by the Microsoft SharePoint Directory Management service, or duplicate e-mail in the Directory Management service, or invalid argument for the Directory Management service, or Directory Management service not configured, or access denied in Directory Management service, or object not found in Directory Management service, or Directory Management service reports an error that is not recognized. Error code: -2146232832. |
SPException | User cannot be found, or cannot modify the UserCollection, or inherited Web site cannot be deleted. Error code: -2146232832. |
ArgumentException | The Administrators site group collection cannot be deleted, or the last farm administrator cannot be removed. Error code: -2147024809. |
InvalidOperationException | Cannot remove users with unique role assignment permissions. Error code: -1. |
SecurityException | Access denied when updating farm administrators group. Error code: -1. |
UnauthorizedAccessException | The current user has insufficient permissions. Error code: -2147024891. |