Edit

Share via


Call.BeginHandleTermination(AsyncCallback, Object) Method

Definition

Handles termination in a class derived from the call class.

protected:
 virtual IAsyncResult ^ BeginHandleTermination(AsyncCallback ^ userCallback, System::Object ^ state);
protected virtual IAsyncResult BeginHandleTermination (AsyncCallback userCallback, object state);
abstract member BeginHandleTermination : AsyncCallback * obj -> IAsyncResult
override this.BeginHandleTermination : AsyncCallback * obj -> IAsyncResult
Protected Overridable Function BeginHandleTermination (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 derived class can implement this method to handle its specific termination tasks before the call is finally terminated.

This method should not throw any exceptions. Therefore, a derived class implementation should not throw any exceptions.

Applications implementing this method should also implement EndHandleTermination(IAsyncResult).

Applies to