Export (0) Print
Expand All

SignedInGamer.GetFriends Method

Reads the friends list of this signed-in gamer, including the gamertag and current presence information for each friend.

Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)

public FriendCollection GetFriends ()

Return Value

The friends of this local gamer.

Exception typeCondition
ObjectDisposedExceptionThis object already has been disposed.
GamerPrivilegeExceptionA signed-in gamer profile is required to perform this operation. An Xbox LIVE profile also may be required. There are no profiles currently signed in, or the profile is not signed in to Xbox LIVE.

On Windows Phone, this method always returns an empty collection.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

© 2015 Microsoft