SmartFoxServer Silverlight API
SFSEvent..::.OnBuddyListDelegate Delegate
NamespacesSmartFoxClientAPISFSEventSFSEvent..::.OnBuddyListDelegate
Dispatched when the buddy list for the current user is received or a buddy is added/removed.
Declaration Syntax
C#Visual BasicVisual C++
public delegate void OnBuddyListDelegate(
	List<Buddy> buddyList
)
Public Delegate Sub OnBuddyListDelegate ( _
	buddyList As List(Of Buddy) _
)
public delegate void OnBuddyListDelegate(
	List<Buddy^>^ buddyList
)
Parameters
buddyList (List<(Of <(Buddy>)>))
the buddy list. Refer to the buddyList property for a description of the buddy object's properties.
Remarks

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to retrieve the properties of each buddy when the buddy list is received.
CopyC#
SFSEvent.onBuddyList += OnBuddyList;

smartFox.LoadBuddyList();

public void OnBuddyList(List<Buddy> buddyList)
{
    foreach (Buddy buddy in buddyList)
    {
        Debug.WriteLine("Buddy id: " + buddy.GetId());
        Debug.WriteLine("Buddy name: " + buddy.GetName());
        Debug.WriteLine("Is buddy online? " + buddy.IsOnline());
        Debug.WriteLine("Is buddy blocked? " + buddy.IsBlocked());

        Debug.WriteLine("Buddy Variables:");
        foreach (string v in buddy.GetVariables().Keys)
            Debug.WriteLine("\t" + v + " -- " + buddy.GetVariable{v});
    }
}
See Also

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