FileSystemSecurity.SetAuditRule(FileSystemAuditRule) Metodo
Definizione
Imposta la regola di controllo specificata per il file o la directory corrente.Sets the specified audit rule for the current file or directory.
public:
void SetAuditRule(System::Security::AccessControl::FileSystemAuditRule ^ rule);
public void SetAuditRule (System.Security.AccessControl.FileSystemAuditRule rule);
override this.SetAuditRule : System.Security.AccessControl.FileSystemAuditRule -> unit
Public Sub SetAuditRule (rule As FileSystemAuditRule)
Parametri
- rule
- FileSystemAuditRule
Oggetto FileSystemAuditRule che rappresenta una regola di controllo da impostare per un file o una directory.A FileSystemAuditRule object that represents an audit rule to set for a file or directory.
Eccezioni
Il valore del parametro rule
è null
.The rule
parameter is null
.
Commenti
Il SetAuditRule metodo aggiunge la regola di controllo specificata o sovrascrive eventuali regole di controllo identiche che corrispondono al FileSystemRights valore del rule
parametro.The SetAuditRule method adds the specified audit rule or overwrites any identical audit rules that match the FileSystemRights value of the rule
parameter. Se, ad esempio, il rule
parametro specifica un Read valore e il SetAuditRule metodo trova una regola di controllo identica che specifica il Read valore, la regola identica verrà sovrascritta.For example, if the rule
parameter specifies a Read value and the SetAuditRule method finds an identical audit rule that specifies the Read value, the identical rule will be overwritten. Se il SetAuditRule metodo trova una regola di controllo identica che specifica il Write valore, la regola identica non verrà sovrascritta.If the SetAuditRule method finds an identical audit rule that specifies the Write value, the identical rule will not be overwritten.