Edit

Share via


AnonymousPipeServerStream.ReadMode Property

Definition

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

public:
 virtual property System::IO::Pipes::PipeTransmissionMode ReadMode {  void set(System::IO::Pipes::PipeTransmissionMode value); };
public override System.IO.Pipes.PipeTransmissionMode ReadMode { set; }
public override System.IO.Pipes.PipeTransmissionMode ReadMode { [System.Security.SecurityCritical] set; }
member this.ReadMode : System.IO.Pipes.PipeTransmissionMode
[<set: System.Security.SecurityCritical>]
member this.ReadMode : System.IO.Pipes.PipeTransmissionMode
Public Overrides Property ReadMode As PipeTransmissionMode

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