DeclineWithResponse Method
Declines the Refer operation.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub DeclineWithResponse ( _
responseCode As Integer, _
responseText As String, _
signalingHeaders As IEnumerable(Of SignalingHeader) _
)
'Usage
Dim instance As ReferReceivedEventArgs
Dim responseCode As Integer
Dim responseText As String
Dim signalingHeaders As IEnumerable(Of SignalingHeader)
instance.DeclineWithResponse(responseCode, _
responseText, signalingHeaders)
public void DeclineWithResponse(
int responseCode,
string responseText,
IEnumerable<SignalingHeader> signalingHeaders
)
Parameters
- responseCode
Type: System..::..Int32
The response code. It must be a failure response code.
- responseText
Type: System..::..String
The response text, which can be nullNothingnullptrunita null reference (Nothing in Visual Basic).
- signalingHeaders
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'SignalingHeader>)>)>
The signaling headers to add, which can be nullNothingnullptrunita null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown when the response code is not in the correct range. |
InvalidOperationException | Thrown when there is no transaction to decline. |
RealTimeException | Thrown when there is a error within the transport. |
Remarks
This results in sending a failure response.