ActiveDirectoryAuditRule 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ActiveDirectoryAuditRule 類別的新執行個體。
多載
ActiveDirectoryAuditRule(IdentityReference, ActiveDirectoryRights, AuditFlags)
使用指定的識別、權限和旗標,初始化 ActiveDirectoryAuditRule 類別的新執行個體。
public:
ActiveDirectoryAuditRule(System::Security::Principal::IdentityReference ^ identity, System::DirectoryServices::ActiveDirectoryRights adRights, System::Security::AccessControl::AuditFlags auditFlags);
public ActiveDirectoryAuditRule (System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags);
new System.DirectoryServices.ActiveDirectoryAuditRule : System.Security.Principal.IdentityReference * System.DirectoryServices.ActiveDirectoryRights * System.Security.AccessControl.AuditFlags -> System.DirectoryServices.ActiveDirectoryAuditRule
Public Sub New (identity As IdentityReference, adRights As ActiveDirectoryRights, auditFlags As AuditFlags)
參數
- identity
- IdentityReference
指定 IdentityReference 物件,例如可解析為安全識別項 (SID) 的 NTAccount 物件。
- adRights
- ActiveDirectoryRights
指定 ActiveDirectoryRights 物件,可用來定義能在目錄物件上設定的所有權限 (與 ActiveDirectoryRights 列舉型別中所定義的相同)。
- auditFlags
- AuditFlags
指定 AuditFlags 物件,其中包含一或多個稽核旗標組合,以加入至這個 ActiveDirectoryAuditRule 中。 允許的旗標為 Success 和 Failure。 這個參數不能是零。
適用於
ActiveDirectoryAuditRule(IdentityReference, ActiveDirectoryRights, AuditFlags, ActiveDirectorySecurityInheritance)
使用指定的識別、權限、旗標和繼承型別,初始化 ActiveDirectoryAuditRule 類別的新執行個體。
public:
ActiveDirectoryAuditRule(System::Security::Principal::IdentityReference ^ identity, System::DirectoryServices::ActiveDirectoryRights adRights, System::Security::AccessControl::AuditFlags auditFlags, System::DirectoryServices::ActiveDirectorySecurityInheritance inheritanceType);
public ActiveDirectoryAuditRule (System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType);
new System.DirectoryServices.ActiveDirectoryAuditRule : System.Security.Principal.IdentityReference * System.DirectoryServices.ActiveDirectoryRights * System.Security.AccessControl.AuditFlags * System.DirectoryServices.ActiveDirectorySecurityInheritance -> System.DirectoryServices.ActiveDirectoryAuditRule
Public Sub New (identity As IdentityReference, adRights As ActiveDirectoryRights, auditFlags As AuditFlags, inheritanceType As ActiveDirectorySecurityInheritance)
參數
- identity
- IdentityReference
指定 IdentityReference 物件,例如可解析為安全識別項 (SID) 的 NTAccount 物件。
- adRights
- ActiveDirectoryRights
指定 ActiveDirectoryRights 物件,可用來定義能在目錄物件上設定的所有權限 (與 ActiveDirectoryRights 列舉型別中所定義的相同)。
- auditFlags
- AuditFlags
指定 AuditFlags 物件,其包含一或多個稽核旗標組合,以加入這個 ActiveDirectoryAuditRule 中。 允許的旗標為 Success 和 Failure。 這個參數不可以是零。
- inheritanceType
- ActiveDirectorySecurityInheritance
指定含有繼承資訊的 ActiveDirectorySecurityInheritance 物件。 ActiveDirectorySecurityInheritance 列舉型別中找到此參數允許使用的旗標。
適用於
ActiveDirectoryAuditRule(IdentityReference, ActiveDirectoryRights, AuditFlags, Guid)
使用指定的識別、權限、旗標和物件型別,初始化 ActiveDirectoryAuditRule 類別的新執行個體。
public:
ActiveDirectoryAuditRule(System::Security::Principal::IdentityReference ^ identity, System::DirectoryServices::ActiveDirectoryRights adRights, System::Security::AccessControl::AuditFlags auditFlags, Guid objectType);
public ActiveDirectoryAuditRule (System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, Guid objectType);
new System.DirectoryServices.ActiveDirectoryAuditRule : System.Security.Principal.IdentityReference * System.DirectoryServices.ActiveDirectoryRights * System.Security.AccessControl.AuditFlags * Guid -> System.DirectoryServices.ActiveDirectoryAuditRule
Public Sub New (identity As IdentityReference, adRights As ActiveDirectoryRights, auditFlags As AuditFlags, objectType As Guid)
參數
- identity
- IdentityReference
指定 IdentityReference 物件,例如可解析為安全識別項 (SID) 的 NTAccount 物件。
- adRights
- ActiveDirectoryRights
指定 ActiveDirectoryRights 物件,可用來定義能在目錄物件上設定的所有權限 (與 ActiveDirectoryRights 列舉型別中所定義的相同)。
- auditFlags
- AuditFlags
指定 AuditFlags 物件,其中包含一或多個稽核旗標組合,以加入至這個 ActiveDirectoryAuditRule 中。 允許的旗標為 Success 和 Failure。 這個參數不可以是零。
適用於
ActiveDirectoryAuditRule(IdentityReference, ActiveDirectoryRights, AuditFlags, ActiveDirectorySecurityInheritance, Guid)
使用指定的識別、權限、旗標、繼承型別和繼承的物件型別,初始化 ActiveDirectoryAuditRule 類別的新執行個體。
public:
ActiveDirectoryAuditRule(System::Security::Principal::IdentityReference ^ identity, System::DirectoryServices::ActiveDirectoryRights adRights, System::Security::AccessControl::AuditFlags auditFlags, System::DirectoryServices::ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType);
public ActiveDirectoryAuditRule (System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType);
new System.DirectoryServices.ActiveDirectoryAuditRule : System.Security.Principal.IdentityReference * System.DirectoryServices.ActiveDirectoryRights * System.Security.AccessControl.AuditFlags * System.DirectoryServices.ActiveDirectorySecurityInheritance * Guid -> System.DirectoryServices.ActiveDirectoryAuditRule
Public Sub New (identity As IdentityReference, adRights As ActiveDirectoryRights, auditFlags As AuditFlags, inheritanceType As ActiveDirectorySecurityInheritance, inheritedObjectType As Guid)
參數
- identity
- IdentityReference
指定 IdentityReference 物件,例如可解析為安全識別項 (SID) 的 NTAccount 物件。
- adRights
- ActiveDirectoryRights
指定 ActiveDirectoryRights 資料型別物件,其用於定義可以在目錄物件上設定的所有權限,如 ActiveDirectoryRights 列舉型別中所定義。
- auditFlags
- AuditFlags
指定 AuditFlags 物件,其中包含一或多個稽核旗標組合,以加入至這個 ActiveDirectoryAuditRule 中。 允許的旗標為 Success 和 Failure。 這個參數不能是零。
- inheritanceType
- ActiveDirectorySecurityInheritance
指定含有繼承資訊的 ActiveDirectorySecurityInheritance 物件。 ActiveDirectorySecurityInheritance 列舉型別中找到此參數允許使用的旗標。
適用於
ActiveDirectoryAuditRule(IdentityReference, ActiveDirectoryRights, AuditFlags, Guid, ActiveDirectorySecurityInheritance)
使用指定的識別、權限、旗標、物件型別和繼承型別,初始化 ActiveDirectoryAuditRule 類別的新執行個體。
public:
ActiveDirectoryAuditRule(System::Security::Principal::IdentityReference ^ identity, System::DirectoryServices::ActiveDirectoryRights adRights, System::Security::AccessControl::AuditFlags auditFlags, Guid objectType, System::DirectoryServices::ActiveDirectorySecurityInheritance inheritanceType);
public ActiveDirectoryAuditRule (System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, Guid objectType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType);
new System.DirectoryServices.ActiveDirectoryAuditRule : System.Security.Principal.IdentityReference * System.DirectoryServices.ActiveDirectoryRights * System.Security.AccessControl.AuditFlags * Guid * System.DirectoryServices.ActiveDirectorySecurityInheritance -> System.DirectoryServices.ActiveDirectoryAuditRule
Public Sub New (identity As IdentityReference, adRights As ActiveDirectoryRights, auditFlags As AuditFlags, objectType As Guid, inheritanceType As ActiveDirectorySecurityInheritance)
參數
- identity
- IdentityReference
指定 IdentityReference 物件,例如可解析為安全識別項 (SID) 的 NTAccount 物件。
- adRights
- ActiveDirectoryRights
指定 ActiveDirectoryRights 物件,可用來定義能在目錄物件上設定的所有權限 (與 ActiveDirectoryRights 列舉型別中所定義的相同)。
- auditFlags
- AuditFlags
指定 AuditFlags 物件,其中包含一或多個稽核旗標組合,以加入至這個 ActiveDirectoryAuditRule 中。 允許的旗標為 Success 和 Failure。 這個參數不能是零。
- inheritanceType
- ActiveDirectorySecurityInheritance
指定含有繼承資訊的 ActiveDirectorySecurityInheritance 物件。 ActiveDirectorySecurityInheritance 列舉型別中找到此參數允許使用的旗標。
適用於
ActiveDirectoryAuditRule(IdentityReference, ActiveDirectoryRights, AuditFlags, Guid, ActiveDirectorySecurityInheritance, Guid)
使用指定的識別、權限、旗標、物件型別、繼承型別和繼承的物件型別,初始化 ActiveDirectoryAuditRule 類別的新執行個體。
public:
ActiveDirectoryAuditRule(System::Security::Principal::IdentityReference ^ identity, System::DirectoryServices::ActiveDirectoryRights adRights, System::Security::AccessControl::AuditFlags auditFlags, Guid objectType, System::DirectoryServices::ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType);
public ActiveDirectoryAuditRule (System.Security.Principal.IdentityReference identity, System.DirectoryServices.ActiveDirectoryRights adRights, System.Security.AccessControl.AuditFlags auditFlags, Guid objectType, System.DirectoryServices.ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType);
new System.DirectoryServices.ActiveDirectoryAuditRule : System.Security.Principal.IdentityReference * System.DirectoryServices.ActiveDirectoryRights * System.Security.AccessControl.AuditFlags * Guid * System.DirectoryServices.ActiveDirectorySecurityInheritance * Guid -> System.DirectoryServices.ActiveDirectoryAuditRule
Public Sub New (identity As IdentityReference, adRights As ActiveDirectoryRights, auditFlags As AuditFlags, objectType As Guid, inheritanceType As ActiveDirectorySecurityInheritance, inheritedObjectType As Guid)
參數
- identity
- IdentityReference
指定 IdentityReference 物件,例如可解析為安全識別項 (SID) 的 NTAccount 物件。
- adRights
- ActiveDirectoryRights
指定 ActiveDirectoryRights 物件,可用來定義能在目錄物件上設定的所有權限 (與 ActiveDirectoryRights 列舉型別中所定義的相同)。
- auditFlags
- AuditFlags
指定 AuditFlags 物件,其中包含一或多個稽核旗標組合,以加入至這個 ActiveDirectoryAuditRule 中。 允許的旗標為 Success 和 Failure。 這個參數不能是零。
- inheritanceType
- ActiveDirectorySecurityInheritance
指定含有繼承資訊的 ActiveDirectorySecurityInheritance 物件。 ActiveDirectorySecurityInheritance 列舉型別中找到此參數允許使用的旗標。