Removes the user or group with the specified identifier (ID) from the role assignment collection.
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub RemoveById ( _
Id As Integer _
)
用法
Dim instance As SPRoleAssignmentCollection
Dim Id As Integer
instance.RemoveById(Id)
public void RemoveById(
int Id
)
参数
Id
类型:System.Int32The ID of the user or group to remove. The value of the ID does not correspond to the index of the role definition within the collection.
异常
| 异常 | 条件 |
|---|---|
| InvalidOperationException | The HasUniqueRoleAssignments property of the ParentSecurableObject property is false. |
备注
This method removes the user or group specified by the Id parameter from the role assignment collection.