共用方式為


SPRoleAssignmentCollection.Remove method (SPPrincipal)

從角色指派集合中移除指定的使用者或群組。

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

Syntax

'宣告
Public Sub Remove ( _
    member As SPPrincipal _
)
'用途
Dim instance As SPRoleAssignmentCollection
Dim member As SPPrincipal

instance.Remove(member)
public void Remove(
    SPPrincipal member
)

參數

Exceptions

Exception Condition
InvalidOperationException

ParentSecurableObject屬性的HasUniqueRoleAssignments屬性是false。

備註

這個方法會移除使用者或角色指派集合中的member參數所指定的群組。

請參閱

參照

SPRoleAssignmentCollection class

SPRoleAssignmentCollection members

Remove overload

Microsoft.SharePoint namespace