共用方式為


SPRoleCollection.RemoveByID method

NOTE: This API is now obsolete.

已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, RemoveByID方法從集合中移除具有指定的成員 ID 角色和維護回溯相容性。)

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")> _
Public Sub RemoveByID ( _
    id As Integer _
)
'用途
Dim instance As SPRoleCollection
Dim id As Integer

instance.RemoveByID(id)
[ObsoleteAttribute("Use the SPRoleDefinitionCollection class instead")]
public void RemoveByID(
    int id
)

參數

備註

id參數的值對應到角色中,在SPMember類別的ID屬性中所包含的唯一成員識別碼。

請參閱

參照

SPRoleCollection class

SPRoleCollection members

Microsoft.SharePoint namespace