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

Visual Basic (Declaration)
Public 
Sub 
SendProvisionalResponse ( _
	
responseCode 
As 
Integer, _
	
responseText 
As 
String, _
	
signalingHeaders 
As 
IEnumerable(
Of 

SignalingHeader), _
	
needEarlyMediaSupport 
As 
Boolean _
)
C#
public 
void 
SendProvisionalResponse(
	
int 
responseCode,
	
string 
responseText,
	
IEnumerable<

SignalingHeader> 
signalingHeaders,
	
bool 
needEarlyMediaSupport
)
Visual C++
public:
void 
SendProvisionalResponse(
	
int 
responseCode, 
	
String^ 
responseText, 
	
IEnumerable<

SignalingHeader^>^ 
signalingHeaders, 
	
bool 
needEarlyMediaSupport
)
JavaScript
function 
sendProvisionalResponse(
responseCode, 
responseText, 
signalingHeaders, 
needEarlyMediaSupport);

Parameters

responseCode
Type: Int32
The provisional response code.
responseText
Type: String
Reasonphrase send out with the response. If null or empty default reasonphrase will be generated.
signalingHeaders
Type: IEnumerable < (Of < ( SignalingHeader > ) > )
The collection of signaling headers. Can be null.
needEarlyMediaSupport
Type: 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.
Microsoft.Rtc.Signaling . . :: . RealTimeException Thrown when a transport error occurred while sending a response.

See Also