MediaProvider.BeginSendMessage 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.
Begins the asynchronous operation to send a message on a specific CallDialogContext.
protected:
IAsyncResult ^ BeginSendMessage(Microsoft::Rtc::Collaboration::CallDialogContext ^ signalingContext, Microsoft::Rtc::Signaling::MessageType messageType, Microsoft::Rtc::Signaling::ContentDescription ^ message, System::Collections::Generic::IEnumerable<Microsoft::Rtc::Signaling::SignalingHeader ^> ^ messageHeaders, AsyncCallback ^ userCallback, System::Object ^ state);
protected IAsyncResult BeginSendMessage (Microsoft.Rtc.Collaboration.CallDialogContext signalingContext, Microsoft.Rtc.Signaling.MessageType messageType, Microsoft.Rtc.Signaling.ContentDescription message, System.Collections.Generic.IEnumerable<Microsoft.Rtc.Signaling.SignalingHeader> messageHeaders, AsyncCallback userCallback, object state);
member this.BeginSendMessage : Microsoft.Rtc.Collaboration.CallDialogContext * Microsoft.Rtc.Signaling.MessageType * Microsoft.Rtc.Signaling.ContentDescription * seq<Microsoft.Rtc.Signaling.SignalingHeader> * AsyncCallback * obj -> IAsyncResult
Parameters
- signalingContext
- CallDialogContext
The signaling context for the session to send the message.
- messageType
- MessageType
The type of message to send.
- message
- ContentDescription
The actual message, consisting of its contentType and message body.
- messageHeaders
- IEnumerable<SignalingHeader>
Additional headers to be sent with the message.
- userCallback
- AsyncCallback
The method to be called when the asynchronous operation is completed.
- state
- Object
A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.
Returns
An IAsyncResult that references the asynchronous operation.
Exceptions
Thrown when a body is specified without a content type with media type. Thrown if messageType is other than Message, Info or Options
Thrown when the call is in an invalid state.
Thrown when signalingContext
is null.