共用方式為


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 命名空間