ReferReceivedEventArgs.DeclineWithResponse(Int32, String, IEnumerable<SignalingHeader>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Declines the Refer operation. This will result in sending a failure response.
public:
void DeclineWithResponse(int responseCode, System::String ^ responseText, System::Collections::Generic::IEnumerable<Microsoft::Rtc::Signaling::SignalingHeader ^> ^ signalingHeaders);
public void DeclineWithResponse (int responseCode, string responseText, System.Collections.Generic.IEnumerable<Microsoft.Rtc.Signaling.SignalingHeader> signalingHeaders);
member this.DeclineWithResponse : int * string * seq<Microsoft.Rtc.Signaling.SignalingHeader> -> unit
Public Sub DeclineWithResponse (responseCode As Integer, responseText As String, signalingHeaders As IEnumerable(Of SignalingHeader))
Parameters
- responseCode
- Int32
The response code. It must be a failure response code.
- responseText
- String
The response text, can be null.
- signalingHeaders
- IEnumerable<SignalingHeader>
The signaling headers to add. Can be null.
Exceptions
The response code was not in the correct range.
There is no transaction to decline.
The operation failed.