IsFriend Method
Collapse the table of content
Expand the table of content

SignedInGamer.IsFriend Method

Queries whether the specified gamer is a friend of this local gamer.

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

public bool IsFriend (
         Gamer gamer


The gamer to query.

Return Value

true if the specified gamer is a friend of the local gamer; false otherwise.

Exception typeCondition
ArgumentNullException gamer is null.
GamerPrivilegeExceptionA 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.
ObjectDisposedExceptionThe gamer object has already been disposed.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions

© 2015 Microsoft