UserInformation.SetAccountPictureFromStreamAsync(IRandomAccessStream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the picture for the user's account using an IRandomAccessStream object.
Important
The UserInformation class is not supported on Windows 10 or later. Use the User class instead. See Remarks in the UserInformation class documentation.
public:
static IAsyncOperation<SetAccountPictureResult> ^ SetAccountPictureFromStreamAsync(IRandomAccessStream ^ image);
static IAsyncOperation<SetAccountPictureResult> SetAccountPictureFromStreamAsync(IRandomAccessStream const& image);
/// [Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
static IAsyncOperation<SetAccountPictureResult> SetAccountPictureFromStreamAsync(IRandomAccessStream const& image);
public static IAsyncOperation<SetAccountPictureResult> SetAccountPictureFromStreamAsync(IRandomAccessStream image);
[Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
public static IAsyncOperation<SetAccountPictureResult> SetAccountPictureFromStreamAsync(IRandomAccessStream image);
function setAccountPictureFromStreamAsync(image)
Public Shared Function SetAccountPictureFromStreamAsync (image As IRandomAccessStream) As IAsyncOperation(Of SetAccountPictureResult)
Parameters
- image
- IRandomAccessStream
The image.
Returns
A value that indicates the success or failure of the operation.
- Attributes
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.