Share via


SPAclSecurity<TAccessRightsEnum>.SetAccessRule method

Adds the specified access rule to this security object, replacing any existing access rules that have the same name as the specified access rule.

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

Syntax

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

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

Parameters

See also

Reference

SPAclSecurity<TAccessRightsEnum> class

SPAclSecurity<TAccessRightsEnum> members

Microsoft.SharePoint.Administration.AccessControl namespace