NamedPipeServerStream.EndWaitForConnection Method (IAsyncResult)

 

Ends an asynchronous operation to wait for a client to connect.

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

[SecurityCriticalAttribute]
public void EndWaitForConnection(
	IAsyncResult asyncResult
)

Parameters

asyncResult
Type: System.IAsyncResult

The pending asynchronous request.

Exception Condition
ArgumentNullException

asyncResult is null.

InvalidOperationException

The pipe was not opened asynchronously.

-or-

The pipe handle has not been set.

IOException

The pipe connection has been broken.

ObjectDisposedException

The pipe is closed.

EndWaitForConnection must be called exactly once for every call to BeginWaitForConnection.

.NET Framework
Available since 3.5
Return to top
Show: