共用方式為


MediaPlayer.SeekCompleted 事件

定義

搜尋作業完成時發生。

注意

MediaPlayer.SeekCompleted可能會在 Windows 10 1607 版之後變更或無法使用。 請改用MediaPlayer.PlaybackSession 屬性來取得 MediaPlaybackSession物件,然後使用MediaPlaybackSession.SeekCompleted事件。

// 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) 

事件類型

屬性

適用於