Terminates a session by rejecting the incoming INVITE.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in
microsoft.rtc.collaboration.dll)
Syntax
|
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
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