Share via


PipeServer.read Method

Definition

Reads data from the named pipe, as written by a pipe client.

public:
 virtual System::String ^ read();
public virtual string read ();
abstract member read : unit -> string
override this.read : unit -> string
Public Overridable Function read () As String

Returns

The data that is read from the pipe, if any data is read.

Remarks

Data might not be available when this method is called, perhaps because no client has connected to the named pipe. If you want to wait for a client to connect, use the connect method. However, if you do not want to block the current thread that is waiting for a client to connect, poll by using the read method.

Applies to