UserInformation.SetAccountPicturesAsync Metode

Definisi

Mengatur gambar untuk akun pengguna menggunakan objek IStorageFile . Mendukung penambahan gambar kecil, gambar besar, dan video.

Penting

Kelas UserInformation tidak didukung pada Windows 10 atau yang lebih baru. Gunakan kelas Pengguna sebagai gantinya. Lihat Keterangan dalam dokumentasi kelas 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)

Parameter

smallImage
IStorageFile

Versi kecil gambar.

largeImage
IStorageFile

Versi besar gambar.

video
IStorageFile

Sebuah video.

Mengembalikan

Nilai yang menunjukkan keberhasilan atau kegagalan operasi.

Atribut

Keterangan

Penting

Kelas UserInformation tidak didukung pada Windows 10 atau yang lebih baru. Gunakan kelas Pengguna sebagai gantinya. Lihat Keterangan dalam dokumentasi kelas UserInformation .

Berlaku untuk

Lihat juga