संपादित करें

इसके माध्यम से साझा किया गया


PipeSecurity.SetAuditRule(PipeAuditRule) Method

Definition

Sets an audit rule in the System Access Control List (SACL) that is associated with the current PipeSecurity object.

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

Parameters

rule
PipeAuditRule

The rule to set.

Exceptions

The rule parameter is null.

Remarks

The SetAuditRule method adds the specified audit rule or overwrites any identical audit rules that match the PipeAccessRights value of the rule parameter. 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. If the SetAuditRule method finds an identical audit rule that specifies the Write value, the identical rule will not be overwritten.

Applies to