|Current information about Live Connect is now available in the Windows Live Developer Center. The information in the following sections is provided for legacy purposes only.|
The UserInfo class enables you to programmatically define and add a UI control that shows user profile data. The default appearance of the UserInfo control includes the thumbnail image (thumbnailImageLink property), first name (firstName property), and status message (statusText property) of the user.
The examples in the following section demonstrate how to create a UserInfo control programmatically. Note that there must be a Document Object Model (DOM) element on the webpage that is defined.
The following example shows a DIV element, initially empty, that will contain the UserInfo control. The id attribute of the DIV element is needed during the initialization of the UserInfo control.