SipPeerToPeerEndpoint.BeginSendMessage(String, MessageType, RealTimeAddress, ContentType, Byte[], IEnumerable<SignalingHeader>, AsyncCallback, Object) 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.
Sends a message.
public:
IAsyncResult ^ BeginSendMessage(System::String ^ localIdentityUri, Microsoft::Rtc::Signaling::MessageType messageType, Microsoft::Rtc::Signaling::RealTimeAddress ^ sessionTarget, System::Net::Mime::ContentType ^ contentType, cli::array <System::Byte> ^ body, System::Collections::Generic::IEnumerable<Microsoft::Rtc::Signaling::SignalingHeader ^> ^ signalingHeaders, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginSendMessage (string localIdentityUri, Microsoft.Rtc.Signaling.MessageType messageType, Microsoft.Rtc.Signaling.RealTimeAddress sessionTarget, System.Net.Mime.ContentType contentType, byte[] body, System.Collections.Generic.IEnumerable<Microsoft.Rtc.Signaling.SignalingHeader> signalingHeaders, AsyncCallback userCallback, object state);
override this.BeginSendMessage : string * Microsoft.Rtc.Signaling.MessageType * Microsoft.Rtc.Signaling.RealTimeAddress * System.Net.Mime.ContentType * byte[] * seq<Microsoft.Rtc.Signaling.SignalingHeader> * AsyncCallback * obj -> IAsyncResult
Parameters
- localIdentityUri
- String
The local identify URI to use. If null, local endpoint's URI is used.
- messageType
- MessageType
The message type.
- sessionTarget
- RealTimeAddress
Target to send the message.
- contentType
- ContentType
Content type describing the body. If null text/plain, UTF-8 is assumed.
- body
- Byte[]
The body for the data.
- signalingHeaders
- IEnumerable<SignalingHeader>
The headers provided for this invite. Can be null.
- 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 others.
Returns
An IAsyncResult that references the asynchronous operation.
Exceptions
Thrown when null is supplied for a required argument. The argument name which is required is is part of the exception message.
Thrown if one of the SignalingHeader in signalingHeaders collection have null or restricted header.