SmartFoxServer Silverlight API
ClearBuddyList Method
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► ClearBuddyList()()()
Remove all users from the buddy list.
Deprecated In order to avoid conflits with the buddy list advanced security mode implemented since SmartFoxServer Pro 1.6.0, buddies should be removed one by one, by iterating through the buddy list.
Declaration Syntax

C# | Visual Basic | Visual C++

    public void ClearBuddyList()

    Public Sub ClearBuddyList

    public:
    void ClearBuddyList()

Remarks

Sends:
SFSEvent..::.OnBuddyListDelegate

History:
SmartFoxServer Pro v1.6.0 - Method deprecated.

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to clear the buddy list.
CopyC#

    smartFox.ClearBuddyList();

See Also
buddyList
SFSEvent..::.OnBuddyListDelegate

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