Edit

Share via


MessageReceivedEventArgs Class

Definition

Represents the argument for relay events.

public ref class MessageReceivedEventArgs abstract : Microsoft::Rtc::Signaling::SipRequestReceivedEventArgs
public abstract class MessageReceivedEventArgs : Microsoft.Rtc.Signaling.SipRequestReceivedEventArgs
type MessageReceivedEventArgs = class
    inherit SipRequestReceivedEventArgs
Public MustInherit Class MessageReceivedEventArgs
Inherits SipRequestReceivedEventArgs
Inheritance
MessageReceivedEventArgs

Constructors

MessageReceivedEventArgs(SipRequestData, Participant, MessageType)

Initializes the new instance of the class.

Properties

Connection

Gets the connection associated with this message. This can be null.

ContentType

Gets the MIME type of the relay message. Can be null if the message has no content type.

DisableAutomaticResponse

Gets or sets whether the response is handled. If true, the application is responsible for sending the response.

HasTextBody

Indicates whether the TextBody field has been filled out.

MessageType

Gets the message type of the body.

Participant

Gets the participant that generated this message.

RequestData

Gets the SIP request data for the event. This can be null in some instances.

(Inherited from SipRequestReceivedEventArgs)
TextBody

Returns the body in the form of a string if the content was easily convertable.

Methods

GetBody()

Retrieves the body of the message.

SendResponse(Int32, ContentType, String, IEnumerable<SignalingHeader>)

Sends response to this message with a specified body and specified headers. 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.

SendResponse(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.

Applies to