SPAclSecurity<TAccessRightsEnum>.AddAccessRule method

Adds the specified access rule to this security object.

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

Syntax

'Declaration
Public Overridable Sub AddAccessRule ( _
    rule As SPAclAccessRule(Of TAccessRightsEnum) _
)
'Usage
Dim instance As SPAclSecurity
Dim rule As SPAclAccessRule(Of TAccessRightsEnum)

instance.AddAccessRule(rule)
public virtual void AddAccessRule(
    SPAclAccessRule<TAccessRightsEnum> rule
)

Parameters

Remarks

If an access rule with the same name already exists, the existing rule is modified to add the rights of the specified rule.

See also

Reference

SPAclSecurity<TAccessRightsEnum> class

SPAclSecurity<TAccessRightsEnum> members

Microsoft.SharePoint.Administration.AccessControl namespace