TerminateWithRejection Method

Terminates a session by rejecting the incoming INVITE.

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

  • responseText
    Type: System..::..String
    The text to indicate the reason, which can be nullNothingnullptrunita null reference (Nothing in Visual Basic).

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.

Remarks

[TerminateWithRejection] can be called only for an incoming session before participating in it.

See Also

Reference

SignalingSession Class

SignalingSession Members

Microsoft.Rtc.Signaling Namespace