UserCollection.Remove 方法
从集合中删除指定的用户。
命名空间: 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.User表示用户User对象。
它不能空引用(无 在 Visual Basic 中)。
异常
异常 | 条件 |
---|---|
[Microsoft.SharePoint.SPException] | 用户无法找到或不能修改 UserCollection。错误代码 ︰-2146232832。 |
[System.UnauthorizedAccessException] | 当前用户没有足够的权限。错误代码 ︰ 为-2147024891。 |