PipeStream.CanWrite 属性

定义

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

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

属性值

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

注解

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

适用于