共用方式為


ActiveDirectorySecurity.AuditRuleFactory 方法

定義

建立 AuditRule 物件。

多載

AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags)

以指定的値建立 AuditRule 物件。

AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags, Guid, Guid)

以指定的値建立 AuditRule 物件。

AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags)

來源:
ActiveDirectorySecurity.cs
來源:
ActiveDirectorySecurity.cs
來源:
ActiveDirectorySecurity.cs

以指定的値建立 AuditRule 物件。

public:
 override System::Security::AccessControl::AuditRule ^ AuditRuleFactory(System::Security::Principal::IdentityReference ^ identityReference, int accessMask, bool isInherited, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, System::Security::AccessControl::AuditFlags flags);
public override sealed System.Security.AccessControl.AuditRule AuditRuleFactory (System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags);
override this.AuditRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AuditFlags -> System.Security.AccessControl.AuditRule
Public Overrides NotOverridable Function AuditRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, flags As AuditFlags) As AuditRule

參數

identityReference
IdentityReference

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

accessMask
Int32

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

isInherited
Boolean

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

inheritanceFlags
InheritanceFlags

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

propagationFlags
PropagationFlags

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

flags
AuditFlags

AuditFlags 物件,包含這個 ActiveDirectorySecurity 物件的稽核旗標。

傳回

對應於 AuditRule 物件的 ActiveDirectorySecurity

另請參閱

適用於

AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags, Guid, Guid)

來源:
ActiveDirectorySecurity.cs
來源:
ActiveDirectorySecurity.cs
來源:
ActiveDirectorySecurity.cs

以指定的値建立 AuditRule 物件。

public:
 override System::Security::AccessControl::AuditRule ^ AuditRuleFactory(System::Security::Principal::IdentityReference ^ identityReference, int accessMask, bool isInherited, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, System::Security::AccessControl::AuditFlags flags, Guid objectGuid, Guid inheritedObjectGuid);
public override sealed System.Security.AccessControl.AuditRule AuditRuleFactory (System.Security.Principal.IdentityReference identityReference, int accessMask, bool isInherited, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags, Guid objectGuid, Guid inheritedObjectGuid);
override this.AuditRuleFactory : System.Security.Principal.IdentityReference * int * bool * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AuditFlags * Guid * Guid -> System.Security.AccessControl.AuditRule
Public Overrides NotOverridable Function AuditRuleFactory (identityReference As IdentityReference, accessMask As Integer, isInherited As Boolean, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, flags As AuditFlags, objectGuid As Guid, inheritedObjectGuid As Guid) As AuditRule

參數

identityReference
IdentityReference

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

accessMask
Int32

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

isInherited
Boolean

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

inheritanceFlags
InheritanceFlags

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

propagationFlags
PropagationFlags

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

flags
AuditFlags

AuditFlags 物件,包含這個 ActiveDirectorySecurity 物件的稽核旗標。

objectGuid
Guid

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

inheritedObjectGuid
Guid

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

傳回

對應於 AuditRule 物件的 ActiveDirectorySecurity

另請參閱

適用於