SPUserCollection.RemoveCollection method
移除字串陣列,包含其使用者名稱所代表的使用者的集合。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub RemoveCollection ( _
removeUsersLoginNames As String() _
)
'用途
Dim instance As SPUserCollection
Dim removeUsersLoginNames As String()
instance.RemoveCollection(removeUsersLoginNames)
public void RemoveCollection(
string[] removeUsersLoginNames
)
參數
removeUsersLoginNames
Type: []字串陣列,包含要移除的使用者的使用者名稱。
Exceptions
Exception | Condition |
---|---|
SPException | 這個集合是唯讀。 |
UnauthorizedAccessException | 目前的使用者不是網站管理員。 |
ArgumentException | 您嘗試移除陣列的最後一位管理員。 |