BeginTerminate Method (IEnumerable(SignalingHeader), AsyncCallback, Object)
Terminates the session asynchronously.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Function BeginTerminate ( _
signalingHeaders As IEnumerable(Of SignalingHeader), _
userCallback As AsyncCallback, _
state As Object _
) As IAsyncResult
'Usage
Dim instance As SignalingSession
Dim signalingHeaders As IEnumerable(Of SignalingHeader)
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginTerminate(signalingHeaders, _
userCallback, state)
public IAsyncResult BeginTerminate(
IEnumerable<SignalingHeader> signalingHeaders,
AsyncCallback userCallback,
Object state
)
Parameters
- signalingHeaders
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'SignalingHeader>)>)>
The collection of signaling headers to attach to any message that is sent. Can be nullNothingnullptrunita null reference (Nothing in Visual Basic).
- userCallback
Type: System..::..AsyncCallback
The callback to be invoked when the [Terminate] operation is complete.
- state
Type: System..::..Object
The state to be passed to the callback.
Return Value
Type: System..::..IAsyncResult
An [IAsyncResult] that references this operation.
Remarks
After calling [BeginTerminate], the session is no longer usable.