Contact.DisplayName | displayName property

Applies to Windows and Windows Phone

Gets the display name for a contact.

Note  You can only access this property from a UI thread.

Syntax


var displayName = contact.displayName;

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The display name for a contact.

Remarks

Windows calculates the DisplayName property by using the values from the FirstName, MiddleName, and LastName properties if any are specified. If these values aren't available, Windows uses the Yomi (phonetic Japanese equivalent) name values (YomiGivenName and YomiFamilyName). The calculation for DisplayName takes into account different locale hints such as script of the text in the names, resource context, and default user locale to determine the proper formatting template for the name.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Contacts
Windows::ApplicationModel::Contacts [C++]

Metadata

Windows.winmd

See also

Contact

 

 

Show:
© 2014 Microsoft