Bewerken

Share via


NamedPipeServerStream.EndWaitForConnection(IAsyncResult) Method

Definition

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