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
)

参数

异常

异常 条件
[Microsoft.SharePoint.SPException]

用户无法找到或不能修改 UserCollection。错误代码 ︰-2146232832。

[System.UnauthorizedAccessException]

当前用户没有足够的权限。错误代码 ︰ 为-2147024891。

另请参阅

引用

UserCollection 类

UserCollection 成员

Microsoft.SharePoint.Client 命名空间