NamedPipeServerStream::WaitForConnectionAsync Method ()

.NET Framework (current version)
 

Asynchronously waits for a client to connect to this NamedPipeServerStream object.

Namespace:   System.IO.Pipes
Assembly:  System.Core (in System.Core.dll)

public:
Task^ WaitForConnectionAsync()

Return Value

Type: System.Threading.Tasks::Task^

A task that represents the asynchronous wait operation.

Because it is asynchronous, this method returns immediately, but the connection process is completed when the client calls Connect or ConnectAsync.

.NET Framework
Available since 4.6
Return to top
Show: