Partilhar via


SipSubscription.BeginSendUpdateMessage Method

Send an update message on existing subscription dialog, this is useful where server allows the chnage in the semantics of existing subscription dialog especially used for LS batch subscriptions.

Namespace:  Microsoft.Rtc.Signaling
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Function BeginSendUpdateMessage ( _
    contentType As ContentType, _
    messageBody As Byte(), _
    userCallback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As SipSubscription
Dim contentType As ContentType
Dim messageBody As Byte()
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginSendUpdateMessage(contentType, _
    messageBody, userCallback, state)
public IAsyncResult BeginSendUpdateMessage(
    ContentType contentType,
    byte[] messageBody,
    AsyncCallback userCallback,
    Object state
)

Parameters

  • messageBody
    Type: []
    The message body to send with the update message
  • userCallback
    Type: System.AsyncCallback
    The method to be called when the asynchronous operation is completed.
  • state
    Type: System.Object
    A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.

Return Value

Type: System.IAsyncResult
An IAsyncResult that references the asynchronous operation.

Exceptions

Exception Condition
InvalidOperationException

Thrown when the endpoint is terminating.

See Also

Reference

SipSubscription Class

SipSubscription Members

Microsoft.Rtc.Signaling Namespace