UserInformation.SetAccountPicturesAsync Метод

Определение

Задает изображения для учетной записи пользователя с помощью объекта IStorageFile . Поддерживает добавление небольшого изображения, большого изображения и видео.

Важно!

Класс UserInformation не поддерживается в Windows 10 или более поздней версии. Вместо этого используйте класс User . См. примечания в документации по классу UserInformation .

public:
 static IAsyncOperation<SetAccountPictureResult> ^ SetAccountPicturesAsync(IStorageFile ^ smallImage, IStorageFile ^ largeImage, IStorageFile ^ video);
 static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesAsync(IStorageFile const& smallImage, IStorageFile const& largeImage, IStorageFile const& video);
/// [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> SetAccountPicturesAsync(IStorageFile const& smallImage, IStorageFile const& largeImage, IStorageFile const& video);
public static IAsyncOperation<SetAccountPictureResult> SetAccountPicturesAsync(IStorageFile smallImage, IStorageFile largeImage, IStorageFile video);
[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> SetAccountPicturesAsync(IStorageFile smallImage, IStorageFile largeImage, IStorageFile video);
function setAccountPicturesAsync(smallImage, largeImage, video)
Public Shared Function SetAccountPicturesAsync (smallImage As IStorageFile, largeImage As IStorageFile, video As IStorageFile) As IAsyncOperation(Of SetAccountPictureResult)

Параметры

smallImage
IStorageFile

Небольшая версия образа.

largeImage
IStorageFile

Большая версия образа.

video
IStorageFile

Видео.

Возвращаемое значение

Значение типа , указывающее на успешное или неудачное выполнение операции.

Атрибуты

Комментарии

Важно!

Класс UserInformation не поддерживается в Windows 10 или более поздней версии. Вместо этого используйте класс User . См. примечания в документации по классу UserInformation .

Применяется к

См. также раздел