語言

NamedPipeServerStream.EndWaitForConnection(IAsyncResult) 方法

定義

結束一個非同步操作,等待用戶端連線。

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)

參數

asyncResult
IAsyncResult

待處理的非同步請求。

屬性

例外狀況

asyncResult 是 null。

管子並非非同步開啟。

-或-

管柄還沒調整好。

管線連接斷了。

管子已經關閉。

備註

EndWaitForConnection每次呼叫 必須精確地呼叫一次。BeginWaitForConnection

適用於