UserInformation.SetAccountPicturesAsync Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk