Share via


CallMessageReceivedEventArgs.SendResponse Method (Int32, ContentDescription, CallSendMessageResponseOptions)

Sends response to the incoming message request with the given response code and options.

Namespace:  Microsoft.Rtc.Collaboration
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Sub SendResponse ( _
    responseCode As Integer, _
    contentDescription As ContentDescription, _
    options As CallSendMessageResponseOptions _
)
'Usage
Dim instance As CallMessageReceivedEventArgs
Dim responseCode As Integer
Dim contentDescription As ContentDescription
Dim options As CallSendMessageResponseOptions

instance.SendResponse(responseCode, contentDescription, _
    options)
public void SendResponse(
    int responseCode,
    ContentDescription contentDescription,
    CallSendMessageResponseOptions options
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

Thrown when value is set to be less than 200 or greater than 699.

ArgumentException

Thrown when contentDescription is invalid.

ArgumentException

Thrown when options contains invalid or restricted signaling headers. Headers.

ArgumentException

Thrown when options contains invalid diagnostics information. DiagnosticsInformation.

InvalidOperationException

Thrown when in an invalid state or when a response has already been sent.

RealTimeException

Thrown when a transport error occurred while sending a response.

See Also

Reference

CallMessageReceivedEventArgs Class

CallMessageReceivedEventArgs Members

SendResponse Overload

Microsoft.Rtc.Collaboration Namespace