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.
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
- responseCode
Type: System.Int32
Response code to use.
- contentDescription
Type: Microsoft.Rtc.Signaling.ContentDescription
Content deescription to send.
- options
Type: Microsoft.Rtc.Collaboration.CallSendMessageResponseOptions
Call message response options to use. Can be null.
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