PipeSecurity.RemoveAuditRuleSpecific(PipeAuditRule) 方法
定义
将指定的审核规则从与当前 PipeSecurity 对象关联的系统访问控制列表 (SACL) 中移除。Removes the specified audit rule from the System Access Control List (SACL) that is associated with the current PipeSecurity object.
public:
void RemoveAuditRuleSpecific(System::IO::Pipes::PipeAuditRule ^ rule);
public void RemoveAuditRuleSpecific (System.IO.Pipes.PipeAuditRule rule);
override this.RemoveAuditRuleSpecific : System.IO.Pipes.PipeAuditRule -> unit
Public Sub RemoveAuditRuleSpecific (rule As PipeAuditRule)
参数
- rule
- PipeAuditRule
要移除的审核规则。The audit rule to remove.
例外
rule 参数为 null。The rule parameter is null.
注解
RemoveAuditRuleSpecific方法 Deny 从当前对象中删除指定的匹配审核规则或指定的匹配 Allow 审核规则 PipeSecurity 。The RemoveAuditRuleSpecific method removes the specified matching Deny audit rule or the specified matching Allow audit rule from the current PipeSecurity object. 例如,你可以使用此方法 Deny 通过传递 FileSystemAuditRule 使用 Deny 值、 Failure 值和用户帐户创建的对象来删除用户的指定审核规则。For example, you can use this method to remove a specified Deny audit rule for a user by passing a FileSystemAuditRule object created using the Deny value, the Failure value, and a user account. 执行此操作时, RemoveAuditRuleSpecific 方法只删除指定值的拒绝规则 Failure 。When you do this, the RemoveAuditRuleSpecific method removes only a deny rule that specifies the Failure value. 它不会删除任何指定值的拒绝规则 Success 。It does not remove any deny rules that specify the Success value.