MediaPlayer.CanSeek Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient une valeur booléenne indiquant si le média prend en charge la recherche à une position spécifique.
Notes
MediaPlayer.CanSeek peut être modifié ou indisponible après Windows 10, version 1607. Utilisez plutôt la propriété MediaPlayer.PlaybackSession pour obtenir un objet MediaPlaybackSession , puis la propriété MediaPlaybackSession.CanSeek .
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
Valeur de propriété
bool
True si le média prend en charge la recherche, sinon false.
- Attributs
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour