SPAclSecurity<TAccessRightsEnum>.RemoveAccessRule method
Removes access rules that have the same name and access rights as the specified access rule from this security object.
Namespace: Microsoft.SharePoint.Administration.AccessControl
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overridable Sub RemoveAccessRule ( _
rule As SPAclAccessRule(Of TAccessRightsEnum) _
)
'Usage
Dim instance As SPAclSecurity
Dim rule As SPAclAccessRule(Of TAccessRightsEnum)
instance.RemoveAccessRule(rule)
public virtual void RemoveAccessRule(
SPAclAccessRule<TAccessRightsEnum> rule
)
Parameters
rule
Type: Microsoft.SharePoint.Administration.AccessControl.SPAclAccessRule<TAccessRightsEnum>The access rule.
Remarks
If an access rule with the same name and different access rights already exists, the existing rule is modified to remove the rights of the specified rule.
See also
Reference
SPAclSecurity<TAccessRightsEnum> class