MediaPlayer.IsProtected 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 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
bool
True if the content is protected, otherwise false.
- Attributes