Partager via


MediaControl.RewindPressed Événement

Définition

Notes

MediaControl peut être modifié ou indisponible pour les versions après Windows 8.1. Utilisez plutôt SystemMediaTransportControls.

Événement déclenché lorsqu’une commande Rewind est émise pour l’application.

/// [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 RewindPressed(EventHandler<IInspectable> const& handler) const;

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

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

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

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

Type d'événement

Attributs

S’applique à