PipeSecurity.ResetAccessRule Method (PipeAccessRule)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes all access rules in the Discretionary Access Control List (DACL) that is associated with the current PipeSecurity object and then adds the specified access rule.

Namespace:   System.IO.Pipes
Assembly:  System.Core (in System.Core.dll)

public void ResetAccessRule(
	PipeAccessRule rule
)

Parameters

rule
Type: System.IO.Pipes.PipeAccessRule

The access rule to add.

Exception Condition
ArgumentNullException

The rule parameter is null.

The ResetAccessRule method adds the specified access control list (ACL) rule or overwrites any identical ACL rules that match the rule parameter. For example, if the rule parameter specifies a Read value and the ResetAccessRule method finds an identical ACL rule that specifies the Read value, the identical rule will be overwritten. If the ResetAccessRule method finds an identical ACL rule that specifies the Write value, the identical rule will also be overwritten.

.NET Framework
Available since 3.5
Return to top
Show: