ActiveDirectorySecurity.AccessRuleFactory Method
Definition
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.
Creates an AccessRule object.
Overloads
AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType) |
Creates an AccessRule object with the specified values. |
AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType, Guid, Guid) |
Creates an AccessRule object with the specified values. |
AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)
- Source:
- ActiveDirectorySecurity.cs
- Source:
- ActiveDirectorySecurity.cs
- Source:
- ActiveDirectorySecurity.cs
Creates an AccessRule object with the specified values.
public:
override 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);
public override sealed 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);
override this.AccessRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AccessControlType -> System.Security.AccessControl.AccessRule
Public Overrides NotOverridable Function AccessRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, type As AccessControlType) As AccessRule
Parameters
- identityReference
- IdentityReference
An IdentityReference object such as an NTAccount object that resolves to a security identifier (SID).
- isInherited
- Boolean
A Boolean object that indicates whether ACEs are inherited. true
if ACEs are inherited; otherwise, false
.
- inheritanceFlags
- InheritanceFlags
An InheritanceFlags object that contains inheritance flags on a directory object.
- propagationFlags
- PropagationFlags
A PropagationFlags object that contains inheritance propagation flags on a directory object.
- type
- AccessControlType
An AccessControlType object that contains the ACE type.
Returns
The AccessRule that corresponds to the ActiveDirectorySecurity object.
See also
Applies to
AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType, Guid, Guid)
- Source:
- ActiveDirectorySecurity.cs
- Source:
- ActiveDirectorySecurity.cs
- Source:
- ActiveDirectorySecurity.cs
Creates an AccessRule object with the specified values.
public:
override 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 objectGuid, Guid inheritedObjectGuid);
public override sealed 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 objectGuid, Guid inheritedObjectGuid);
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 Overrides NotOverridable Function AccessRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, type As AccessControlType, objectGuid As Guid, inheritedObjectGuid As Guid) As AccessRule
Parameters
- identityReference
- IdentityReference
An IdentityReference object, such as an NTAccount object, that resolves to a security identifier (SID).
- isInherited
- Boolean
A Boolean object that indicates if ACEs are inherited. true
if ACEs are inherited; otherwise, false
.
- inheritanceFlags
- InheritanceFlags
An InheritanceFlags object that contains inheritance flags for a directory object.
- propagationFlags
- PropagationFlags
A PropagationFlags object that contains inheritance propagation flags for a directory object.
- type
- AccessControlType
An AccessControlType object that contains the ACE type.
Returns
The AccessRule that corresponds to the ActiveDirectorySecurity object.