UserInformation.AccountPictureChanged イベント

定義

ユーザーのイメージまたは名前が変更されたときに発生します。

重要

UserInformation クラスは、Windows 10以降ではサポートされていません。 代わりに User クラスを使用してください。 UserInformation クラスのドキュメントの「解説」を参照してください。

// Register
static event_token AccountPictureChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void AccountPictureChanged(event_token const* cookie) const;

// Revoke with event_revoker
static UserInformation::AccountPictureChanged_revoker AccountPictureChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
// Register
static event_token AccountPictureChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void AccountPictureChanged(event_token const* cookie) const;

// Revoke with event_revoker
static UserInformation::AccountPictureChanged_revoker AccountPictureChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> AccountPictureChanged;
[add: Windows.Foundation.Metadata.Deprecated("Use User instead of UserInformation. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.System.UserProfile.UserProfileContract")]
[remove: 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 event System.EventHandler<object> AccountPictureChanged;
function onAccountPictureChanged(eventArgs) { /* Your code */ }
Windows.System.UserProfile.UserInformation.addEventListener("accountpicturechanged", onAccountPictureChanged);
Windows.System.UserProfile.UserInformation.removeEventListener("accountpicturechanged", onAccountPictureChanged);
- or -
Windows.System.UserProfile.UserInformation.onaccountpicturechanged = onAccountPictureChanged;
Public Shared Custom Event AccountPictureChanged As EventHandler(Of Object) 

イベントの種類

属性

注釈

重要

UserInformation クラスは、Windows 10以降ではサポートされていません。 代わりに User クラスを使用してください。 UserInformation クラスのドキュメントの「解説」を参照してください。

このイベントを使用して、ユーザーのアカウント画像の変更を監視します。

このイベントへのアクセスは、プライバシー設定によってブロックできます。 アクセスがブロックされている場合、 AccountPictureChangeEnabled プロパティは false になります。

適用対象

こちらもご覧ください