Bewerken

Delen via


ActiveDirectorySecurity.AccessRuleFactory Method

Definition

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

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).

accessMask
Int32

An Int32 bitmask that shows the access privileges to use.

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

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).

accessMask
Int32

An Int32 bitmask that shows the access privileges to use.

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.

objectGuid
Guid

A Guid object that contains the GUID of the directory object.

inheritedObjectGuid
Guid

A Guid object that contains the GUID of the inherited directory object.

Returns

The AccessRule that corresponds to the ActiveDirectorySecurity object.

See also

Applies to