MediaPlayer.IsProtected Propriété

Définition

Obtient une valeur booléenne indiquant si le contenu est protégé par un système de gestion des droits numériques.

Notes

MediaPlayer.IsProtected 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 utilisez la propriété IsProtected .

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

Valeur de propriété

Boolean

bool

True si le contenu est protégé, sinon false.

Attributs

S’applique à