Freigeben über


MediaControl.ChannelUpPressed Ereignis

Definition

Hinweis

MediaControl kann nach Windows 8.1 geändert oder nicht mehr für Releases verfügbar sein. Verwenden Sie stattdessen SystemMediaTransportControls.

Das Ereignis wird ausgelöst, wenn ein ChannelUp-Befehl für die Anwendung ausgegeben wird.

/// [add: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Media.MediaControlContract)]
/// [remove: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Media.MediaControlContract)]
// Register
static event_token ChannelUpPressed(EventHandler<IInspectable> const& handler) const;

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

// Revoke with event_revoker
static MediaControl::ChannelUpPressed_revoker ChannelUpPressed(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
// Register
static event_token ChannelUpPressed(EventHandler<IInspectable> const& handler) const;

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

// Revoke with event_revoker
static MediaControl::ChannelUpPressed_revoker ChannelUpPressed(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
[add: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Media.MediaControlContract))]
[remove: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Media.MediaControlContract))]
public static event System.EventHandler<object> ChannelUpPressed;
[add: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
[remove: Windows.Foundation.Metadata.Deprecated("MediaControl may be altered or unavailable for releases after Windows 8.1. Instead, use SystemMediaTransportControls.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Media.MediaControlContract")]
public static event System.EventHandler<object> ChannelUpPressed;
function onChannelUpPressed(eventArgs) { /* Your code */ }
Windows.Media.MediaControl.addEventListener("channeluppressed", onChannelUpPressed);
Windows.Media.MediaControl.removeEventListener("channeluppressed", onChannelUpPressed);
- or -
Windows.Media.MediaControl.onchanneluppressed = onChannelUpPressed;
Public Shared Custom Event ChannelUpPressed As EventHandler(Of Object) 

Ereignistyp

Attribute

Gilt für: