Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Terminates a session by rejecting the incoming invite. This method can be called only for an incoming session before participating in it.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub TerminateWithRejection ( _
responseCode As Integer, _
responseText As String, _
signalingHeaders As IEnumerable(Of SignalingHeader) _
)
'Usage
Dim instance As SignalingSession
Dim responseCode As Integer
Dim responseText As String
Dim signalingHeaders As IEnumerable(Of SignalingHeader)
instance.TerminateWithRejection(responseCode, _
responseText, signalingHeaders)
public void TerminateWithRejection(
int responseCode,
string responseText,
IEnumerable<SignalingHeader> signalingHeaders
)
Parameters
- responseCode
Type: System.Int32
Failure response code.
- responseText
Type: System.String
The text to indicate the reason. Can be null.
- signalingHeaders
Type: System.Collections.Generic.IEnumerable<SignalingHeader>
The signaling headers to add. Can be null.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | Thrown when the response code is not in the proper range. |
| InvalidOperationException | Thrown when called in an invalid state. |
| RealTimeException | Thrown when a transport error occurs while sending. |