PipeStream.IsConnected 属性


获取或设置一个值,该值指示是否已连接 PipeStream 对象。Gets or sets a value indicating whether a PipeStream object is connected.

public:  property bool IsConnected {  public:
bool get(); protected:
 void set(bool value); };
public bool IsConnected { get; protected set; }
member this.IsConnected : bool with get, set
Public Property IsConnected As Boolean


如果已连接 true 对象,则为 PipeStream;否则为 falsetrue if the PipeStream object is connected; otherwise, false.


仅当 PipeStream 对象已连接时,IsConnected 属性才返回 trueThe IsConnected property returns true only if the PipeStream object is connected. 如果此属性返回 false,则管道可能正在等待连接,或可能已断开连接、已关闭或已损坏。If this property returns false, the pipe may be waiting to connect, or may be disconnected, closed, or broken.