NamedPipeServerStream.EndWaitForConnection(IAsyncResult) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Ends an asynchronous operation to wait for a client to connect.
public:
void EndWaitForConnection(IAsyncResult ^ asyncResult);
public void EndWaitForConnection (IAsyncResult asyncResult);
[System.Security.SecurityCritical]
public void EndWaitForConnection (IAsyncResult asyncResult);
member this.EndWaitForConnection : IAsyncResult -> unit
[<System.Security.SecurityCritical>]
member this.EndWaitForConnection : IAsyncResult -> unit
Public Sub EndWaitForConnection (asyncResult As IAsyncResult)
Parameters
- asyncResult
- IAsyncResult
The pending asynchronous request.
- Attributes
Exceptions
asyncResult
is null
.
The pipe was not opened asynchronously.
-or-
The pipe handle has not been set.
The pipe connection has been broken.
The pipe is closed.
Remarks
EndWaitForConnection must be called exactly once for every call to BeginWaitForConnection.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.