FileSystemSecurity.RemoveAuditRuleAll(FileSystemAuditRule) FileSystemSecurity.RemoveAuditRuleAll(FileSystemAuditRule) FileSystemSecurity.RemoveAuditRuleAll(FileSystemAuditRule) FileSystemSecurity.RemoveAuditRuleAll(FileSystemAuditRule) Method

定義

從目前的檔案或目錄中,移除指定之使用者的所有稽核規則。Removes all audit rules for the specified user from the current file or directory.

public:
 void RemoveAuditRuleAll(System::Security::AccessControl::FileSystemAuditRule ^ rule);
public void RemoveAuditRuleAll (System.Security.AccessControl.FileSystemAuditRule rule);
override this.RemoveAuditRuleAll : System.Security.AccessControl.FileSystemAuditRule -> unit
Public Sub RemoveAuditRuleAll (rule As FileSystemAuditRule)

參數

rule
FileSystemAuditRule FileSystemAuditRule FileSystemAuditRule FileSystemAuditRule

FileSystemAuditRule 物件,指定應該從檔案或目錄中移除其稽核規則的使用者。A FileSystemAuditRule object that specifies a user whose audit rules should be removed from a file or directory.

例外狀況

備註

RemoveAuditRuleAll方法會移除指定之使用者的所有審核規則。The RemoveAuditRuleAll method removes all audit rules for the specified user. 它會忽略使用者帳戶以外FileSystemAuditRule的物件中的所有值。It ignores all values in the FileSystemAuditRule object except the user account.

適用於