PipeStream.IsMessageComplete Property


Gets a value indicating whether there is more data in the message returned from the most recent read operation.

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

public bool IsMessageComplete {

Property Value

Type: System.Boolean

true if there are no more characters to read in the message; otherwise, false.

Exception Condition

The pipe is not connected.


The pipe handle has not been set.


The pipe's ReadMode property value is not Message.


The pipe is closed.

This property is relevant if the pipe's ReadMode property was set to Message by the most recent call to Read or EndRead.

.NET Framework
Available since 3.5
Return to top