MediaPlayer.SeekCompleted Ereignis

Definition

Tritt auf, wenn ein Suchvorgang abgeschlossen ist.

Hinweis

MediaPlayer.SeekCompleted kann nach Windows 10 Version 1607 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen die MediaPlayer.PlaybackSession-Eigenschaft , um ein MediaPlaybackSession-Objekt abzurufen, und verwenden Sie dann das MediaPlaybackSession.SeekCompleted-Ereignis .

// Register
event_token SeekCompleted(TypedEventHandler<MediaPlayer, IInspectable const&> const& handler) const;

// Revoke with event_token
void SeekCompleted(event_token const* cookie) const;

// Revoke with event_revoker
MediaPlayer::SeekCompleted_revoker SeekCompleted(auto_revoke_t, TypedEventHandler<MediaPlayer, IInspectable const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.SeekCompleted instead of SeekCompleted.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.SeekCompleted instead of SeekCompleted.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
// Register
event_token SeekCompleted(TypedEventHandler<MediaPlayer, IInspectable const&> const& handler) const;

// Revoke with event_token
void SeekCompleted(event_token const* cookie) const;

// Revoke with event_revoker
MediaPlayer::SeekCompleted_revoker SeekCompleted(auto_revoke_t, TypedEventHandler<MediaPlayer, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaPlayer,object> SeekCompleted;
[add: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.SeekCompleted instead of SeekCompleted.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.SeekCompleted instead of SeekCompleted.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<MediaPlayer,object> SeekCompleted;
function onSeekCompleted(eventArgs) { /* Your code */ }
mediaPlayer.addEventListener("seekcompleted", onSeekCompleted);
mediaPlayer.removeEventListener("seekcompleted", onSeekCompleted);
- or -
mediaPlayer.onseekcompleted = onSeekCompleted;
Public Custom Event SeekCompleted As TypedEventHandler(Of MediaPlayer, Object) 

Ereignistyp

Attribute

Gilt für: