user Property

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.

Gets the object of class Microsoft.Live.Messenger.User that corresponds to the currently authenticated user.

Feature:  Microsoft.Live
Namespace:  Microsoft.Live

// To retrieve:
var user = instance.get_user();

Return Value

A Microsoft.Live.Messenger.User object that represents the current authenticated Messenger Connect user, or null if there currently is no authenticated user.

The following example demonstrates how to get the current user and then set that user's presence to appear busy.

function setPresenceBusy()
    //Get the messenger context and the user object.
    messengerContext = wl.App.get_messengerContext();
    user = messengerContext.get_user();
    //Set the user's presence to busy.

Windows Live Messenger Connect

Supported in: 4.1

Internet Explorer 8.0, Internet Explorer 7.0, Internet Explorer 6.0, Firefox 3.6, Firefox 3.5, Firefox 3.0, Firefox 2.0, Firefox 1.5, Chrome 4.0, Chrome 3.0, Chrome 2.0, Chrome 1.0, Safari 4.0, Safari 3.0