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物件。
它不能null 參考 (未執行任何動作 於 Visual Basic 中)。
例外狀況
例外狀況 | 條件 |
---|---|
[Microsoft.SharePoint.SPException] | 使用者找不到,或無法修改 UserCollection。錯誤碼 ︰-2146232832。 |
[System.UnauthorizedAccessException] | 目前的使用者會有足夠的權限。錯誤碼 ︰-2147024891。 |