SignalingSession.TerminateWithRedirection Method (IEnumerable<RealTimeAddress>)
Terminates an incoming session by redirecting (with response code 302) the inviter with a list of addresses.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub TerminateWithRedirection ( _
redirectAddresses As IEnumerable(Of RealTimeAddress) _
)
'Usage
Dim instance As SignalingSession
Dim redirectAddresses As IEnumerable(Of RealTimeAddress)
instance.TerminateWithRedirection(redirectAddresses)
public void TerminateWithRedirection(
IEnumerable<RealTimeAddress> redirectAddresses
)
Parameters
- 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. |
InvalidOperationException | Thrown when the session is in an invalid state. |
RealTimeException | Thrown when the operation fails. |