ActiveDirectorySecurity.AccessRuleFactory 方法

定义

创建一个 AccessRule 对象。

重载

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

创建具有指定值的 AccessRule 对象。

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

创建具有指定值的 AccessRule 对象。

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

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

创建具有指定值的 AccessRule 对象。

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

参数

identityReference
IdentityReference

解析为安全标识符 (SID) 的 IdentityReference 对象,例如 NTAccount 对象。

accessMask
Int32

一个 Int32 位掩码,显示要使用的访问特权。

isInherited
Boolean

一个 Boolean 对象,指示 ACE 是否可被继承。 如果 ACE 可被继承,则为 true;否则为 false

inheritanceFlags
InheritanceFlags

一个 InheritanceFlags 对象,其中包含目录对象上的继承标志。

propagationFlags
PropagationFlags

一个 PropagationFlags 对象,其中包含目录对象的继承传播标志。

type
AccessControlType

包含 ACE 类型的 AccessControlType 对象。

返回

ActiveDirectorySecurity 对象相对应的 AccessRule

另请参阅

适用于

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

Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs
Source:
ActiveDirectorySecurity.cs

创建具有指定值的 AccessRule 对象。

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

参数

identityReference
IdentityReference

解析为安全标识符 (SID) 的 IdentityReference 对象,如 NTAccount 对象。

accessMask
Int32

一个 Int32 位掩码,显示要使用的访问特权。

isInherited
Boolean

一个 Boolean 对象,指示 ACE 是否可被继承。 如果 ACE 可被继承,则为 true;否则为 false

inheritanceFlags
InheritanceFlags

一个 InheritanceFlags 对象,其中包含目录对象的继承标志。

propagationFlags
PropagationFlags

一个 PropagationFlags 对象,其中包含目录对象的继承传播标志。

type
AccessControlType

包含 ACE 类型的 AccessControlType 对象。

objectGuid
Guid

一个 Guid 对象,其中包含目录对象的 GUID。

inheritedObjectGuid
Guid

一个 Guid 对象,其中包含继承的目录对象的 GUID。

返回

ActiveDirectorySecurity 对象相对应的 AccessRule

另请参阅

适用于