共用方式為


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)

來源:
ActiveDirectorySecurity.cs
來源:
ActiveDirectorySecurity.cs
來源:
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

IdentityReference 物件 (例如 NTAccount 物件),解析為安全識別項 (SID)。

accessMask
Int32

Int32 位元遮罩,顯示要使用的存取權限。

isInherited
Boolean

Boolean 物件,指出 ACE 是否是繼承的。 如果 ACE 是繼承的則為 true,否則為 false

inheritanceFlags
InheritanceFlags

InheritanceFlags 物件,包含目錄物件的繼承旗標。

propagationFlags
PropagationFlags

PropagationFlags 物件,包含目錄物件的繼承傳用旗標。

type
AccessControlType

AccessControlType 物件,包含 ACE 型別。

傳回

對應於 AccessRule 物件的 ActiveDirectorySecurity

另請參閱

適用於

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

來源:
ActiveDirectorySecurity.cs
來源:
ActiveDirectorySecurity.cs
來源:
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

IdentityReference 物件 (例如 NTAccount 物件),解析為安全識別項 (SID)。

accessMask
Int32

Int32 位元遮罩,顯示要使用的存取權限。

isInherited
Boolean

Boolean 物件,指出 ACE 是否是繼承的。 如果 ACE 是繼承的則為 true,否則為 false

inheritanceFlags
InheritanceFlags

InheritanceFlags 物件,包含目錄物件的繼承旗標。

propagationFlags
PropagationFlags

PropagationFlags 物件,包含目錄物件的繼承傳用旗標。

type
AccessControlType

AccessControlType 物件,包含 ACE 型別。

objectGuid
Guid

Guid 物件,包含目錄物件的 GUID。

inheritedObjectGuid
Guid

Guid 物件,包含繼承之目錄物件的 GUID。

傳回

對應於 AccessRule 物件的 ActiveDirectorySecurity

另請參閱

適用於