Share via


BeginSendMessage Method (String, AsyncCallback, Object)

Send a text message in the conversation.

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

Syntax

'Declaration
Public Function BeginSendMessage ( _
    textBody As String, _
    userCallback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As InstantMessagingFlow
Dim textBody As String
Dim userCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginSendMessage(textBody, _
    userCallback, state)
public IAsyncResult BeginSendMessage(
    string textBody,
    AsyncCallback userCallback,
    Object state
)

Parameters

Return Value

Type: System..::..IAsyncResult

Remarks

It is delivered to all remote participants currently capable of receiving instant messages.

Exceptions

[cref][T:System.ArgumentNullException]: ArgumentNullException is thrown when null is passed for a required parameter. The parameter name that is required is included in the exception message.

[cref][T:System.InvalidOperationException]: The provider is in the wrong state to send a message.

[cref][T:Microsoft.Rtc.Signaling.ServerPolicyException]: A server policy setting does not allow the sending of the message.

See Also

Reference

InstantMessagingFlow Class

InstantMessagingFlow Members

BeginSendMessage Overload

Microsoft.Rtc.Collaboration Namespace