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 an incoming session by redirecting the inviter (with specific redirect response code given) with a list of addresses.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub TerminateWithRedirection ( _
responseCode As Integer, _
redirectAddresses As IEnumerable(Of RealTimeAddress) _
)
'Usage
Dim instance As SignalingSession
Dim responseCode As Integer
Dim redirectAddresses As IEnumerable(Of RealTimeAddress)
instance.TerminateWithRedirection(responseCode, _
redirectAddresses)
public void TerminateWithRedirection(
int responseCode,
IEnumerable<RealTimeAddress> redirectAddresses
)
Parameters
- responseCode
Type: System.Int32
The redirection response code to use.
- redirectAddresses
Type: System.Collections.Generic.IEnumerable<RealTimeAddress>
The collection of redirect addresses to use.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | Thrown when the address is not formed correctly. |
| ArgumentOutOfRangeException | Thrown when the response code is not a redirection code. |
| InvalidOperationException | Thrown when the session is in an invalid state. |
| RealTimeException | Thrown when the operation fails. |