PipeStream.IsMessageComplete 属性

定义

获取一个值,该值指示最近的读操作返回的消息中是否有更多数据。Gets a value indicating whether there is more data in the message returned from the most recent read operation.

public:
 property bool IsMessageComplete { bool get(); };
[get: System.Security.SecurityCritical]
public bool IsMessageComplete { get; }
member this.IsMessageComplete : bool
Public ReadOnly Property IsMessageComplete As Boolean

属性值

如果消息中没有更多要读取的字符,则为 true;否则为 falsetrue if there are no more characters to read in the message; otherwise, false.

属性

异常

管道不可连接。The pipe is not connected.

- 或 --or- 尚未设置管道句柄。The pipe handle has not been set.

- 或 --or- 管道的 ReadMode 属性值不是 MessageThe pipe's ReadMode property value is not Message.

管道已关闭。The pipe is closed.

注解

如果管道的 ReadMode 属性设置为最近对 ReadEndRead的调用 Message,则此属性是相关的。This property is relevant if the pipe's ReadMode property was set to Message by the most recent call to Read or EndRead.

适用于