Terminates the associated call.

Namespace:  Microsoft.Rtc.Collaboration.ComponentModel
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Protected 
Function 
BeginTerminateCall ( _
	
signalingContext 
As 

CallDialogContext, _
	
headers 
As 
IEnumerable(
Of 

SignalingHeader), _
	
userCallback 
As 
AsyncCallback, _
	
state 
As 
Object _
) 
As 
IAsyncResult
C#
protected 
IAsyncResult 
BeginTerminateCall(
	

CallDialogContext 
signalingContext,
	
IEnumerable<

SignalingHeader> 
headers,
	
AsyncCallback 
userCallback,
	
Object 
state
)
Visual C++
protected:
IAsyncResult^ 
BeginTerminateCall(
	

CallDialogContext^ 
signalingContext, 
	
IEnumerable<

SignalingHeader^>^ 
headers, 
	
AsyncCallback^ 
userCallback, 
	
Object^ 
state
)
JavaScript
function 
beginTerminateCall(
signalingContext, 
headers, 
userCallback, 
state);

Parameters

signalingContext
Type: Microsoft.Rtc.Collaboration . . :: . CallDialogContext
The signaling context for the corresponding call.
headers
Type: IEnumerable < (Of < ( SignalingHeader > ) > )
Additional headers to be sent out with the call terminating BYE message.
userCallback
Type: AsyncCallback
The method to be called when the asynchronous operation is completed.
state
Type: Object
A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.

Return Value

An IAsyncResult that references the asynchronous operation.

Exceptions

Exception Condition
ArgumentNullException Thrown when signalingContextis null.

See Also