GamerCard Class

Displays an Xbox gamer card.

Inheritance Hierarchy

System.Object
  Microsoft.Web.Helpers.GamerCard

Namespace:  Microsoft.Web.Helpers
Assembly:  Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)

Syntax

'Declaration
Public NotInheritable Class GamerCard
'Usage
You do not need to declare an instance of a static class in order to access its members.
public static class GamerCard
public ref class GamerCard abstract sealed
public final class GamerCard

The GamerCard type exposes the following members.

Methods

  Name Description
Public methodStatic member GetHtml Displays an Xbox gamer card.

Top

Remarks

This class represents a helper, which is a component that simplifies Web programming in ASP.NET Web Pages.

When people play Microsoft Xbox games online, each user has a unique ID. Statistics are kept for each player in the form of a gamer card, which shows their reputation, gamer score, and recently played games. If you are an Xbox gamer, you can show your gamer card on pages in your site by using the GamerCard class.

Note

The GamerCard class requires the use of iframe elements, which are XHTML 1.0 compliant but not XHTML 1.1 compliant. HTML5 is backwards compatible and supports iframe elements, it does not yet include the scrolling and frameborder attributes. There is no CSS alternative for attributes that can be used on the page that contains the iframe element. Therefore, the markup that is rendered by the GamerCard object output is not currently fully HTML5 compliant.

Examples

The following example shows how to use a GamerCard object.

<!DOCTYPE html> 
<html> 
  <head> 
    <title>Xbox Gamer Card</title> 
  </head> 
  <body> 
    <h1>Xbox Gamer Card</h1> 
    @GamerCard.GetHtml("major nelson") 
  </body> 
</html>

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Web.Helpers Namespace