SPUserCollection.RemoveByID method
從集合中移除之指定的成員 ID 與使用者。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub RemoveByID ( _
id As Integer _
)
'用途
Dim instance As SPUserCollection
Dim id As Integer
instance.RemoveByID(id)
public void RemoveByID(
int id
)
參數
id
Type: System.Int3232 位元的整數,指定成員 id。
Exceptions
Exception | Condition |
---|---|
SPException | 這個集合是唯讀。 |
UnauthorizedAccessException | 目前的使用者不是網站管理員。 |
ArgumentException | 您嘗試移除陣列的最後一位管理員。 |
備註
id參數的值對應至網站群組中,在SPMember類別的ID屬性中所包含的唯一成員識別碼。