SmartFoxServer Silverlight API
SFSEvent..::.OnModeratorMessageDelegate Delegate
Namespaces ► SmartFoxClientAPI ► SFSEvent ► SFSEvent..::.OnModeratorMessageDelegate
Dispatched when a message from a Moderator is received.
Declaration Syntax

C# | Visual Basic | Visual C++

    public delegate void OnModeratorMessageDelegate(
    	string message,
    	User sender
    )

    Public Delegate Sub OnModeratorMessageDelegate ( _
    	message As String, _
    	sender As User _
    )

    public delegate void OnModeratorMessageDelegate(
    	String^ message,
    	User^ sender
    )

Parameters

message (String)
  the Moderator's message.

sender (User)
  the User object representing the Moderator.

Remarks

Since:
SmartFoxServer Pro v1.4.5

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to handle a message coming from a Moderator.
CopyC#

    SFSEvent.onModeratorMessage += OnModeratorMessage;

    public void OnModeratorMessage(string message, User sender)
    {
        Debug.WriteLine("Moderator " + sender.GetName() + " said: " + message);
    }

See Also
SFSEvent..::.OnAdminMessageDelegate
User
SendModeratorMessage(String, String, Int32)

Assembly: SmartFoxClientAPI_Silverlight (Module: SmartFoxClientAPI_Silverlight) Version: 1.0.0.0 (1.0.0.0)