BeginSendMessage Method (MessageType, RealTimeAddress, ContentType, Byte[], AsyncCallback, Object)

Sends a message to another endpoint.

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


Public Function BeginSendMessage ( _
    messageType As MessageType, _
    sessionTarget As RealTimeAddress, _
    contentType As ContentType, _
    body As Byte(), _
    userCallback As AsyncCallback, _
    state As Object _
) As IAsyncResult
Dim instance As RealTimeEndpoint
Dim messageType As MessageType
Dim sessionTarget As RealTimeAddress
Dim contentType As ContentType
Dim body As Byte()
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginSendMessage(messageType, _
    sessionTarget, contentType, body, _
    userCallback, state)
public IAsyncResult BeginSendMessage(
    MessageType messageType,
    RealTimeAddress sessionTarget,
    ContentType contentType,
    byte[] body,
    AsyncCallback userCallback,
    Object state


  • contentType
    Type: System.Net.Mime..::..ContentType
    The content type describing the body. If nullNothingnullptrunita null reference (Nothing in Visual Basic) text/plain, UTF-8 is assumed.
  • state
    Type: System..::..Object
    A user-provided object that distinguishes this particular asynchronous operation from others.

Return Value

Type: System..::..IAsyncResult
Returns an IAsyncResult that references this operation.


Exception Condition

Thrown when arguments are nullNothingnullptrunita null reference (Nothing in Visual Basic).


Thrown when a server policy setting does not allow sending the message.

See Also


RealTimeEndpoint Class

RealTimeEndpoint Members

BeginSendMessage Overload

Microsoft.Rtc.Signaling Namespace