Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.39 KB

userinformation_getaccountpicture_1542251334.md

File metadata and controls

36 lines (25 loc) · 1.39 KB
-api-id -api-type
M:Windows.System.UserProfile.UserInformation.GetAccountPicture(Windows.System.UserProfile.AccountPictureKind)
winrt method

Windows.System.UserProfile.UserInformation.GetAccountPicture

-description

Gets the account picture for the user.

Important

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

-parameters

-param kind

An enumeration that you can use to determine what type of image you want (small, large, and so on).

-returns

An object that contains the image.

-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 account picture can be blocked by privacy settings (for example, if the UserInformation.NameAccessAllowed property is false). If access is blocked, this method returns a null value.

This method does not throw an exception.

-examples

-see-also

User