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.
Declines the Refer operation. This will result in sending a failure response.
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, can be null.
- signalingHeaders
Type: System.Collections.Generic.IEnumerable<SignalingHeader>
The signaling headers to add. Can be null.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The response code was not in the correct range. |
| InvalidOperationException | There is no transaction to decline. |
| RealTimeException | The operation failed. |