SignalingSession.TerminateWithRejection Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
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) _
)
public void TerminateWithRejection (
int responseCode,
string responseText,
IEnumerable<SignalingHeader> signalingHeaders
)
Parameters
- responseCode
The failure response code.
- responseText
The text to indicate the reason, which can be null.
- signalingHeaders
The signaling headers to add.
Exceptions
Exception type | 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.
Thread Safety
All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition
Target Platforms
See Also
Reference
SignalingSession Class
SignalingSession Members
Microsoft.Rtc.Signaling Namespace