MessageReceivedEventArgs.SendResponse Method (Int32)
Sends a response to this message with specified response code. This method is optional for message received events. If the application does not call SendResponse in MessageReceived handlers, the platform will automatically respond with ResponseCode.Succeeded.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub SendResponse ( _
responseCode As Integer _
)
'Usage
Dim instance As MessageReceivedEventArgs
Dim responseCode As Integer
instance.SendResponse(responseCode)
public void SendResponse(
int responseCode
)
Parameters
- responseCode
Type: System.Int32
The response code to be sent.
Exceptions
Exception | Condition |
---|---|
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
MessageReceivedEventArgs Class