Contact.DisplayName Contact.DisplayName Contact.DisplayName Contact.DisplayName Contact.DisplayName Property

Definition

Gets the display name for a contact.

Note

You can only access this property from a UI thread.

public : Platform::String DisplayName { get; }
winrt::hstring DisplayName();
public string DisplayName { get; }
Public ReadOnly Property DisplayName As string
var string = contact.displayName;
Property Value
string string string

The display name for a contact.

Additional features and requirements
Capabilities
contactsSystem

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.