MediaPlayer.IsProtected Property

Definition

Gets a Boolean value indicating if the content is protected by a digital rights management system.

Note

MediaPlayer.IsProtected 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 IsProtected property.

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

Property Value

Boolean

bool

True if the content is protected, otherwise false.

Attributes

Applies to