Edit

Share via


Call.BeginSendInfo Method

Definition

Caution

This method will be removed from future versions. AudioVideoCall users can refer to AudioVideoCall.BeginSendMessage(). Derived class implementation can refer to protected method BeginSendMessage().

Sends an INFO message to the remote participant of this call.

public:
 IAsyncResult ^ BeginSendInfo(System::Net::Mime::ContentType ^ contentType, cli::array <System::Byte> ^ contentBody, System::Collections::Generic::IEnumerable<Microsoft::Rtc::Signaling::SignalingHeader ^> ^ signalingHeaders, AsyncCallback ^ userCallback, System::Object ^ state);
[System.Obsolete("This method will be removed from future versions. AudioVideoCall users can refer to AudioVideoCall.BeginSendMessage(). Derived class implementation can refer to protected method BeginSendMessage().")]
public IAsyncResult BeginSendInfo (System.Net.Mime.ContentType contentType, byte[] contentBody, System.Collections.Generic.IEnumerable<Microsoft.Rtc.Signaling.SignalingHeader> signalingHeaders, AsyncCallback userCallback, object state);
member this.BeginSendInfo : System.Net.Mime.ContentType * byte[] * seq<Microsoft.Rtc.Signaling.SignalingHeader> * AsyncCallback * obj -> IAsyncResult

Parameters

contentType
ContentType

Content type of the INFO message. This parameter cannot be null.

contentBody
Byte[]

Content body of the INFO message. This parameter cannot be null.

signalingHeaders
IEnumerable<SignalingHeader>

Headers to be included in the outgoing INFO message. This parameter 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 other asynchronous operations.

Returns

An IAsyncResult that references the asynchronous operation.

Attributes

Exceptions

Thrown when the contentType parameter or contentBody parameter is null.

Thrown when the call is in an invalid state to perform this operation.

Applies to