SemaphoreAuditRule(IdentityReference, SemaphoreRights, AuditFlags) Constructor

Definición

Inicializa una nueva instancia de la SemaphoreAuditRule clase , especificando el usuario o grupo que se va a auditar, los derechos de auditoría y si se auditan correctamente, error o ambos.

public:
 SemaphoreAuditRule(System::Security::Principal::IdentityReference ^ identity, System::Security::AccessControl::SemaphoreRights eventRights, System::Security::AccessControl::AuditFlags flags);
public SemaphoreAuditRule(System.Security.Principal.IdentityReference identity, System.Security.AccessControl.SemaphoreRights eventRights, System.Security.AccessControl.AuditFlags flags);
new System.Security.AccessControl.SemaphoreAuditRule : System.Security.Principal.IdentityReference * System.Security.AccessControl.SemaphoreRights * System.Security.AccessControl.AuditFlags -> System.Security.AccessControl.SemaphoreAuditRule
Public Sub New (identity As IdentityReference, eventRights As SemaphoreRights, flags As AuditFlags)

Parámetros

identity
IdentityReference

El usuario o el grupo a los que se aplica la regla. Debe ser de tipo SecurityIdentifier o de un tipo como NTAccount que se puede convertir al tipo SecurityIdentifier.

eventRights
SemaphoreRights

Combinación bit a bit de SemaphoreRights valores que especifican los tipos de acceso a la auditoría.

flags
AuditFlags

Combinación bit a bit de AuditFlags valores que especifican si se va a auditar el éxito, el error o ambos.

Excepciones

eventRights especifica un valor no válido.

O bien

flags especifica un valor no válido.

identity es null.

O bien

eventRights es cero.

identity no es de tipo SecurityIdentifier ni de un tipo como NTAccount que se puede convertir al tipo SecurityIdentifier.

Comentarios

Para crear un NTAccount objeto a partir de una cadena que representa un nombre de usuario o grupo, use el NTAccount.NTAccount(String) constructor .

Se aplica a