SignedInGamer.GetFriends Method
Reads the friends list of this local gamer. This includes both the gamertags of the friends and their current presence information.
Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public FriendCollection GetFriends ()
Return Value
The friends of this local gamer.
Exceptions
Exception type | Condition |
---|---|
ObjectDisposedException | This object has already been disposed. |
GamerPrivilegeException | A signed-in gamer profile is required to perform this operation. A LIVE profile may also be required. There are no profiles currently signed in, or the profile is not signed in to LIVE. |
See Also
Reference
SignedInGamer Class
SignedInGamer Members
Microsoft.Xna.Framework.GamerServices Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista, Zune