NamedPipeServerStream::EndWaitForConnection Method (IAsyncResult^)
.NET Framework (current version)
Ends an asynchronous operation to wait for a client to connect.
Assembly: System.Core (in System.Core.dll)
public: [SecurityCriticalAttribute] 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
Available since 3.5
Show: