Partager via


MediaProvider.BeginTerminateCall Method (CallDialogContext, IEnumerable<SignalingHeader>, AsyncCallback, Object)

Begins the asynchronous operation to terminate the Call.

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

Syntax

'Declaration
Protected Function BeginTerminateCall ( _
    signalingContext As CallDialogContext, _
    headers As IEnumerable(Of SignalingHeader), _
    userCallback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim signalingContext As CallDialogContext
Dim headers As IEnumerable(Of SignalingHeader)
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = Me.BeginTerminateCall(signalingContext, _
    headers, userCallback, state)
protected IAsyncResult BeginTerminateCall(
    CallDialogContext signalingContext,
    IEnumerable<SignalingHeader> headers,
    AsyncCallback userCallback,
    Object state
)

Parameters

  • userCallback
    Type: System.AsyncCallback
    The method to be called when the asynchronous operation is completed.
  • state
    Type: System.Object
    A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.

Return Value

Type: System.IAsyncResult
An IAsyncResult that references the asynchronous operation.

Exceptions

Exception Condition
ArgumentNullException

Thrown when signalingContext is null.

ArgumentException

Thrown when headers contain a restricted or invalid header.

See Also

Reference

MediaProvider Class

MediaProvider Members

BeginTerminateCall Overload

Microsoft.Rtc.Collaboration.ComponentModel Namespace