Freigeben über


MediaControl.NextTrackPressed Ereignis

Definition

Hinweis

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

Ereignis, das ausgelöst wird, wenn ein NextTrack-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 NextTrackPressed(EventHandler<IInspectable> const& handler) const;

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

// Revoke with event_revoker
static MediaControl::NextTrackPressed_revoker NextTrackPressed(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 NextTrackPressed(EventHandler<IInspectable> const& handler) const;

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

// Revoke with event_revoker
static MediaControl::NextTrackPressed_revoker NextTrackPressed(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> NextTrackPressed;
[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> NextTrackPressed;
function onNextTrackPressed(eventArgs) { /* Your code */ }
Windows.Media.MediaControl.addEventListener("nexttrackpressed", onNextTrackPressed);
Windows.Media.MediaControl.removeEventListener("nexttrackpressed", onNextTrackPressed);
- or -
Windows.Media.MediaControl.onnexttrackpressed = onNextTrackPressed;
Public Shared Custom Event NextTrackPressed As EventHandler(Of Object) 

Ereignistyp

Attribute

Gilt für:

Weitere Informationen