UserInformation.AccountPictureChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
// 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)
事件類型
- 屬性
備註
重要
Windows 10或更新版本不支援UserInformation類別。 請改用 User 類別。 請參閱 UserInformation 類別檔中的。
使用此事件來監視使用者帳戶圖片的變更。
隱私權設定可以封鎖此事件的存取。 如果存取遭到封鎖, AccountPictureChangeEnabled 屬性會是 false。