Edit

Share via


AnonymousPipeServerStream.ReadMode Property

Definition

Sets the reading mode for the AnonymousPipeServerStream object. For anonymous pipes, transmission mode must be Byte.

public override System.IO.Pipes.PipeTransmissionMode ReadMode { set; }
public override System.IO.Pipes.PipeTransmissionMode ReadMode { [System.Security.SecurityCritical] set; }

Property Value

The reading mode for the AnonymousPipeServerStream object.

Attributes

Exceptions

The transmission mode is not valid. For anonymous pipes, only Byte is supported.

The property is set to Message, which is not supported for anonymous pipes.

The connection is broken or another I/O error occurs.

The pipe is closed.

Remarks

Anonymous pipes do not support the PipeTransmissionMode.Message read mode. Because the default value of this property is PipeTransmissionMode.Byte, there is never a reason to set this property in your code.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1