-api-id | -api-type |
---|---|
M:Windows.System.UserProfile.UserInformation.GetAccountPicture(Windows.System.UserProfile.AccountPictureKind) |
winrt method |
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.
An enumeration that you can use to determine what type of image you want (small, large, and so on).
An object that contains the image.
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.