Share via


Guide.ShowSignIn Method

Shows the user interface a gamer uses for signing into Xbox LIVE.

Syntax

'Declaration
Public Shared Sub ShowSignIn ( _
         paneCount As Integer, _
         onlineOnly As Boolean _
)
public static void ShowSignIn (
         int paneCount,
         bool onlineOnly
)
public:
static void ShowSignIn(
         int paneCount,
         bool onlineOnly
)

Parameters

  • paneCount
    Type: Int32

    Number of panes displayed at sign in. Each pane accepts a single gamer.

    On Windows Phone, only a single pane can be displayed.

  • onlineOnly
    Type: Boolean
    Determines the profile types being displayed. true if only online profiles are displayed; false otherwise. If onlineOnly is true, local gamers can sign in as guests of a profile currently signed in.

Exceptions

Exception type Condition
ArgumentException The paneCount argument is invalid. Valid options for this parameter are 1, 2, and 4.

Remarks

Bb975995.note(en-us,XNAGameStudio.42).gifWindows Phone Specific Information
If gamer services are not yet initialized, this method throws an InvalidOperationException. If gamer services are initialized, this method attempts to fetch gamer privileges if needed. In either case, no UI is shown when this method is called on Windows Phone.

Requirements

Namespace: Microsoft.Xna.Framework.GamerServices

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

See Also

Reference

Guide Class
Guide Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Windows Phone