Udostępnij za pośrednictwem


Contact.Name Property

Definition

Sets and gets the name of the contact.

Note

Name may be altered or unavailable for releases after Windows 8.1. Instead, use FirstName, MiddleName, and LastName.

public:
 property Platform::String ^ Name { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Name();

void Name(winrt::hstring value);
public string Name { get; set; }
var string = contact.name;
contact.name = string;
Public Property Name As String

Property Value

String

Platform::String

winrt::hstring

The name of the contact.

Windows requirements

App capabilities
contactsSystem

Remarks

An app can set the name property to any value that matches the name of a contact. We recommend that you set this value to contain both the first and last names of the contact, if that information is available.

Applies to