MediaPlayer.CanSeek Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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