SignalingSession.SendProvisionalResponse Method (Int32, IEnumerable<SignalingHeader>, Boolean)
Sends a provisional response synchronously with optional support for early media.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub SendProvisionalResponse ( _
responseCode As Integer, _
signalingHeaders As IEnumerable(Of SignalingHeader), _
needEarlyMediaSupport As Boolean _
)
'Usage
Dim instance As SignalingSession
Dim responseCode As Integer
Dim signalingHeaders As IEnumerable(Of SignalingHeader)
Dim needEarlyMediaSupport As Boolean
instance.SendProvisionalResponse(responseCode, _
signalingHeaders, needEarlyMediaSupport)
public void SendProvisionalResponse(
int responseCode,
IEnumerable<SignalingHeader> signalingHeaders,
bool needEarlyMediaSupport
)
Parameters
- responseCode
Type: System.Int32
The provisional response code.
- signalingHeaders
Type: System.Collections.Generic.IEnumerable<SignalingHeader>
The collection of signaling headers. Can be null.
- needEarlyMediaSupport
Type: System.Boolean
True to indicate that the application wants to send offer/answer in the response.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown when the response code is not provisional. |
InvalidOperationException | Thrown when called in an invalid state. |
RealTimeException | Thrown when a transport error occurred while sending a response. |