Share via


ContactInstantMessageField.UserName Property

Definition

Gets the user's name.

Note

ContactInstantMessageField may be altered or unavailable for releases after Windows 8.1. Instead, use ContactConnectedServiceAccount.

public:
 property Platform::String ^ UserName { Platform::String ^ get(); };
winrt::hstring UserName();
public string UserName { get; }
var string = contactInstantMessageField.userName;
Public ReadOnly Property UserName As String

Property Value

String

Platform::String

winrt::hstring

The user's name.

Windows requirements

App capabilities
contactsSystem

Remarks

Remember that the user's name for an instant message account is not always the same as his or her actual name. If you want a user's actual name, use the ContactInformation.name property.

Applies to