PipeSecurity.AddAuditRule(PipeAuditRule) 方法

定义

将审核规则添加到与当前 PipeSecurity 对象关联的系统访问控制列表 (SACL)。Adds an audit rule to the System Access Control List (SACL) that is associated with the current PipeSecurity object.

public:
 void AddAuditRule(System::IO::Pipes::PipeAuditRule ^ rule);
public void AddAuditRule (System.IO.Pipes.PipeAuditRule rule);
override this.AddAuditRule : System.IO.Pipes.PipeAuditRule -> unit
Public Sub AddAuditRule (rule As PipeAuditRule)

参数

rule
PipeAuditRule

要添加的审核规则。The audit rule to add.

异常

rule 参数为 nullThe rule parameter is null.

注解

方法将新的审核规则添加到PipeSecurity对象包含的规则列表。 AddAuditRuleThe AddAuditRule method adds a new audit rule to the list of rules that a PipeSecurity object contains.

如果指定的规则已存在审核规则, 则该AddAuditRule方法仍将添加规则。If an audit rule already exists for the specified rule, the AddAuditRule method will still add the rule.

适用于