Sends a message that has passed a filter as defined by a custom application.
Assembly: Microsoft.Lync.Model (in Microsoft.Lync.Model.dll)
- Type: Microsoft.Lync.Model.Room.RoomMessage
If a user finishes typing a message to be posted to a chat room, your application logic has a chance to review the pending post by catching the IsSendingMessage event and running filter or formatting logic against the message string. If the user's message passes your filter, then post the message to the room by calling SendFilteredMessage with the enumerator RoomMessageFilteringAction.Passed. If the message does not pass your filter, call SendFilteredMessage with the enumerator RoomMessageFilteringAction.Canceled. If the message passes your filter but you reformat the message or replace text, call the method with the RoomMessageFilteringAction.Replaced enumerator. Note: If you call SendFilteredMessage multiple times with the same message, an exception is raised by Room.EndSendMessage with each send operation after the first send operation.