Room.SendFilteredMessage method

Sends a message that has passed a filter as defined by a custom application.

Namespace:  Microsoft.Lync.Model.Room
Assembly:  Microsoft.Lync.Model (in Microsoft.Lync.Model.dll)

Syntax

'Declaration
Public Sub SendFilteredMessage ( _
    message As RoomMessage, _
    action As RoomMessageFilteringAction _
)
'Usage
Dim instance As Room
Dim message As RoomMessage
Dim action As RoomMessageFilteringAction

instance.SendFilteredMessage(message, _
    action)
public void SendFilteredMessage(
    RoomMessage message,
    RoomMessageFilteringAction action
)

Parameters

Remarks

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.

See also

Reference

Room class

Room members

Microsoft.Lync.Model.Room namespace