SmartFoxServer Silverlight API
SetBuddyBlockStatus Method (buddyName, status)
NamespacesSmartFoxClientAPISmartFoxClientSetBuddyBlockStatus(String, Boolean)
Block or unblock a user in the buddy list.
When a buddy is blocked, SmartFoxServer does not deliver private messages from/to that user.
Declaration Syntax
C#Visual BasicVisual C++
public void SetBuddyBlockStatus(
	string buddyName,
	bool status
)
Public Sub SetBuddyBlockStatus ( _
	buddyName As String, _
	status As Boolean _
)
public:
void SetBuddyBlockStatus(
	String^ buddyName, 
	bool status
)
Parameters
buddyName (String)
the name of the buddy to be blocked or unblocked.
status (Boolean)
true to block the buddy, false to unblock the buddy.
Remarks

Since:
SmartFoxServer Pro v1.6.0

Version:
SmartFoxServer Pro

Examples
The following example shows how to block a user from the buddy list.
CopyC#
smartFox.SetBuddyBlockStatus("jack", true);
See Also

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