LocalEndpoint.BeginTerminate(AsyncCallback, Object) Method

Definition

Terminates the local endpoint after cleaning up all communication and collaboration resources.

public:
 IAsyncResult ^ BeginTerminate(AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginTerminate (AsyncCallback userCallback, object state);
member this.BeginTerminate : AsyncCallback * obj -> IAsyncResult
Public Function BeginTerminate (userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

userCallback
AsyncCallback

The method to be called when the asynchronous operation is completed.

state
Object

A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.

Returns

An IAsyncResult that references the asynchronous operation.

Remarks

The local endpoint is no longer usable after this operation is invoked.

Note that this operation never throws.

Applies to