Room.BeginSendMessage method (IDictionary<RoomMessageFormat, String>, RoomMessageType, AsyncCallback, Object)
Sends a message in different formats to this room.
Assembly: Microsoft.Lync.Model (in Microsoft.Lync.Model.dll)
Public Function BeginSendMessage ( _ contents As IDictionary(Of RoomMessageFormat, String), _ type As RoomMessageType, _ callback As AsyncCallback, _ state As Object _ ) As IAsyncResult
Dim instance As Room Dim contents As IDictionary(Of RoomMessageFormat, String) Dim type As RoomMessageType Dim callback As AsyncCallback Dim state As Object Dim returnValue As IAsyncResult returnValue = instance.BeginSendMessage(contents, _ type, callback, state)
public IAsyncResult BeginSendMessage( IDictionary<RoomMessageFormat, string> contents, RoomMessageType type, AsyncCallback callback, Object state )
- Type: System.AsyncCallback
- Type: System.Object
Return valueType: System.IAsyncResult
A user must be connected to a room before they can send a message to the room. Any room that is in the users contact list is automatically connected when the user signs in to Lync. Any other room that a user is a member of must be joined by calling Room.BeginJoin. When the Room.JoinedState is JoinedState.Success, the user can send messages to the room. The user remains connected to the chat room until signed out of Lync. If a user does not have permission to post messages to a room, then BeginSendMessage fails and the user does not appear on the room participant roster.