Export (0) Print
Expand All

Contact.DisplayName Property

Gets the contact's display name.

Script:  http://www.wlmessenger.net/api/3.7/loader.js
Feature:  Messenger.Core
Namespace:  Microsoft.Live.Messenger
 

// To retrieve:
var displayName = instance.get_displayName();

The display name can be used by applications to render a contact to the application user. The display name is computed based on the available properties for a contact, including the Nickname, ApplicationDisplayName, DisplayName, and Address.

If DisplayNameMode is set to FullName then DisplayName will return the FirstName and LastName in the appropriate order based on the market of the signed-in user. This will fall back to using DisplayName if FirstName and LastName are not set.

To render emoticons contained within the display name as images, an application should consider using EmoticonEncode(String).

The display name is also used for sorting contacts in the user's OnlineContacts and OfflineContacts collections.

To be notified of changes to the display name, register for the PropertyChanged event on each Contact.

Windows Live Messenger Web Toolkit

Supported in: 3.7, 3.5, 3.1, 3.0, 2.5

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

Show:
© 2014 Microsoft