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)
Syntax
public bool IsFriend (
Gamer gamer
)
Parameters
- gamer
The gamer to query.
Return Value
true if the specified gamer is a friend of the local gamer; false otherwise.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | gamer is null. |
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. |
ObjectDisposedException | The gamer object has already been disposed. |
See Also
Reference
SignedInGamer Class
SignedInGamer Members
Microsoft.Xna.Framework.GamerServices Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista, Zune