AnonymousPipeServerStream.ReadMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.