Jaa


MediaPlayer.CanSeek Property

Definition

Gets a Boolean value indicating if the media supports seeking to a specific position.

Note

MediaPlayer.CanSeek may be altered or unavailable after Windows 10, version 1607. Instead, use the MediaPlayer.PlaybackSession property to get a MediaPlaybackSession object and then use the MediaPlaybackSession.CanSeek property.

public:
 property bool CanSeek { bool get(); };
bool CanSeek();
/// [get: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.CanSeek instead of CanSeek.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
bool CanSeek();
public bool CanSeek { get; }
public bool CanSeek { [Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.CanSeek instead of CanSeek.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")] get; }
var boolean = mediaPlayer.canSeek;
Public ReadOnly Property CanSeek As Boolean

Property Value

Boolean

bool

True if the media supports seeking, otherwise false.

Attributes

Applies to