EventWaitHandleAuditRule Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the EventWaitHandleAuditRule class, specifying the user or group to audit, the rights to audit, and whether to audit success, failure, or both.
public:
EventWaitHandleAuditRule(System::Security::Principal::IdentityReference ^ identity, System::Security::AccessControl::EventWaitHandleRights eventRights, System::Security::AccessControl::AuditFlags flags);
public EventWaitHandleAuditRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.EventWaitHandleRights eventRights, System.Security.AccessControl.AuditFlags flags);
new System.Security.AccessControl.EventWaitHandleAuditRule : System.Security.Principal.IdentityReference * System.Security.AccessControl.EventWaitHandleRights * System.Security.AccessControl.AuditFlags -> System.Security.AccessControl.EventWaitHandleAuditRule
Public Sub New (identity As IdentityReference, eventRights As EventWaitHandleRights, flags As AuditFlags)
Parameters
- identity
- IdentityReference
The user or group the rule applies to. Must be of type SecurityIdentifier or a type such as NTAccount that can be converted to type SecurityIdentifier.
- eventRights
- EventWaitHandleRights
A bitwise combination of EventWaitHandleRights values specifying the kinds of access to audit.
- flags
- AuditFlags
A bitwise combination of AuditFlags values specifying whether to audit success, failure, or both.
Exceptions
eventRights
specifies an invalid value.
-or-
flags
specifies an invalid value.
identity
is neither of type SecurityIdentifier nor of a type such as NTAccount that can be converted to type SecurityIdentifier.
Remarks
To create an NTAccount object from a string representing a user or group name, use the NTAccount.NTAccount(String) constructor.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om