SmartFoxServer Silverlight API
SendModeratorMessage Method (message, type, id)
NamespacesSmartFoxClientAPISmartFoxClientSendModeratorMessage(String, String, Int32)
Send a Moderator message to the current zone, the current room or a specific user in the current room.
In order to send these kind of messages, the user must have Moderator's privileges, which are set by SmartFoxServer when the user logs in (see the Login(String, String, String) method).
Declaration Syntax
C#Visual BasicVisual C++
public void SendModeratorMessage(
	string message,
	string type,
	int id
)
Public Sub SendModeratorMessage ( _
	message As String, _
	type As String, _
	id As Integer _
)
public:
void SendModeratorMessage(
	String^ message, 
	String^ type, 
	int id
)
Parameters
message (String)
the text of the message.
type (String)
the type of message. The following constants can be passed: MODMSG_TO_USER, MODMSG_TO_ROOM and MODMSG_TO_ZONE, to send the message to a user, to the current room or to the entire current zone respectively.
id (Int32)
the id of the recipient room or user (ignored if the message is sent to the zone).
Remarks

Sends:
SFSEvent..::.OnModeratorMessageDelegate

Since:
SmartFoxServer Pro v1.4.5

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to send a Moderator message.
CopyC#
smartFox.SendModeratorMessage("Greetings from the Moderator", SmartFoxClient.MODMSG_TO_ROOM, smartFox.GetActiveRoom());
See Also

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