SemaphoreAuditRule(IdentityReference, SemaphoreRights, AuditFlags) Constructor
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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 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 .