UserInformation.SetAccountPictureAsync(IStorageFile) Metode

Definisi

Mengatur gambar untuk akun pengguna menggunakan objek IStorageFile .

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> ^ SetAccountPictureAsync(IStorageFile ^ image);
 static IAsyncOperation<SetAccountPictureResult> SetAccountPictureAsync(IStorageFile 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> SetAccountPictureAsync(IStorageFile const& image);
public static IAsyncOperation<SetAccountPictureResult> SetAccountPictureAsync(IStorageFile 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> SetAccountPictureAsync(IStorageFile image);
function setAccountPictureAsync(image)
Public Shared Function SetAccountPictureAsync (image As IStorageFile) As IAsyncOperation(Of SetAccountPictureResult)

Parameter

image
IStorageFile

File yang berisi gambar.

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