ActiveDirectorySecurity.AccessRuleFactory Method

Definition

Creates an AccessRule object.

Overloads

AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

Creates an AccessRule object with the specified values.

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

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

.NET 9 (package-provided) та інші версії
Продукт Версії
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.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 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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

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

.NET 9 (package-provided) та інші версії
Продукт Версії
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.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 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9