PipeStream.CanRead 属性

定义

获取一个值,该值指示当前流是否支持读操作。Gets a value indicating whether the current stream supports read operations.

public:
 virtual property bool CanRead { bool get(); };
public override bool CanRead { get; }
member this.CanRead : bool
Public Overrides ReadOnly Property CanRead As Boolean

属性值

如果流支持读操作,则为 true;否则为 falsetrue if the stream supports read operations; otherwise, false.

注解

如果 PipeStream 对象处于关闭状态,则此属性将返回 falseIf the PipeStream object is closed, this property returns false.

适用于