DirectoryObjectSecurity.AccessRuleFactory Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the AccessRule class with the specified values.
public:
virtual System::Security::AccessControl::AccessRule ^ AccessRuleFactory(System::Security::Principal::IdentityReference ^ identityReference, int accessMask, bool isInherited, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, System::Security::AccessControl::AccessControlType type, Guid objectType, Guid inheritedObjectType);
public virtual System.Security.AccessControl.AccessRule AccessRuleFactory (System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type, Guid objectType, Guid inheritedObjectType);
override this.AccessRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AccessControlType * Guid * Guid -> System.Security.AccessControl.AccessRule
Public Overridable Function AccessRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, type As AccessControlType, objectType As Guid, inheritedObjectType As Guid) As AccessRule
- identityReference
- IdentityReference
The identity to which the access rule applies. It must be an object that can be cast as a SecurityIdentifier.
- accessMask
- Int32
The access mask of this rule. The access mask is a 32-bit collection of anonymous bits, the meaning of which is defined by the individual integrators.
- isInherited
- Boolean
true if this rule is inherited from a parent container.
- inheritanceFlags
- InheritanceFlags
Specifies the inheritance properties of the access rule.
- propagationFlags
- PropagationFlags
Specifies whether inherited access rules are automatically propagated. The propagation flags are ignored if inheritanceFlags
is set to None.
- type
- AccessControlType
Specifies the valid access control type.
- objectType
- Guid
The identity of the class of objects to which the new access rule applies.
- inheritedObjectType
- Guid
The identity of the class of child objects which can inherit the new access rule.
The AccessRule object that this method creates.
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: