EventWaitHandleAuditRule(IdentityReference, EventWaitHandleRights, AuditFlags) Construtor

Definição

Inicializa uma nova instância da classe EventWaitHandleAuditRule, especificando o usuário ou grupo a ser auditado, os direitos a serem auditados e se a auditoria deve ser realizada em caso de êxito, de falha ou ambos.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)

Parâmetros

identity
IdentityReference

O usuário ou grupo ao qual a regra se aplica.The user or group the rule applies to. Deve ser do tipo SecurityIdentifier ou um tipo como NTAccount que pode ser convertido para o tipo SecurityIdentifier.Must be of type SecurityIdentifier or a type such as NTAccount that can be converted to type SecurityIdentifier.

eventRights
EventWaitHandleRights

Uma combinação bit a bit de valores EventWaitHandleRights que especifica os tipos de acesso a serem auditados.A bitwise combination of EventWaitHandleRights values specifying the kinds of access to audit.

flags
AuditFlags

Uma combinação bit a bit de valores AuditFlags que especifica se a auditoria deve ser realizada em caso de êxito, de falha ou ambos.A bitwise combination of AuditFlags values specifying whether to audit success, failure, or both.

Exceções

eventRights especifica um valor inválido.eventRights specifies an invalid value.

- ou --or- flags especifica um valor inválido.flags specifies an invalid value.

identity é null.identity is null.

- ou --or- eventRights é zero.eventRights is zero.

identity não é do tipo SecurityIdentifier nem de um tipo como NTAccount que pode ser convertido para o tipo SecurityIdentifier.identity is neither of type SecurityIdentifier nor of a type such as NTAccount that can be converted to type SecurityIdentifier.

Comentários

Para criar um NTAccount objeto a partir de uma cadeia de caracteres que representa um nome de usuário ou grupo, use o NTAccount.NTAccount(String) Construtor.To create an NTAccount object from a string representing a user or group name, use the NTAccount.NTAccount(String) constructor.

Aplica-se a