Export (0) Print
Expand All

PipeSecurity.SetAccessRule Method (PipeAccessRule)

Sets an access rule in the Discretionary Access Control List (DACL) that is associated with the current PipeSecurity object.

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

public void SetAccessRule(
	PipeAccessRule rule
)

Parameters

rule
Type: System.IO.Pipes.PipeAccessRule

The rule to set.

ExceptionCondition
ArgumentNullException

The rule parameter is null.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft