Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.19 KB

userinformation_getdisplaynameasync_1284689900.md

File metadata and controls

33 lines (22 loc) · 1.19 KB
-api-id -api-type
M:Windows.System.UserProfile.UserInformation.GetDisplayNameAsync
winrt method

Windows.System.UserProfile.UserInformation.GetDisplayNameAsync

-description

Gets the display name for the user account.

Important

The UserInformation class is not supported on Windows 10 or later. Use the User class instead. See Remarks in the UserInformation class documentation.

-returns

The display name for the user account.

-remarks

Important

The UserInformation class is not supported on Windows 10 or later. Use the User class instead. See Remarks in the UserInformation class documentation.

Access to the display name can be blocked by privacy settings (for example, if the UserInformation.NameAccessAllowed property is false). If access is blocked, this method returns an empty string.

This method does not throw an exception.

-examples

-see-also

User