Share via


MediaPlayer.CanPause Eigenschaft

Definition

Ruft einen booleschen Wert ab, der angibt, ob die Medien angehalten werden können.

Hinweis

MediaPlayer.CanPause kann nach Windows 10 Version 1607 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen die MediaPlayer.PlaybackSession-Eigenschaft , um ein MediaPlaybackSession-Objekt abzurufen, und verwenden Sie dann die MediaPlaybackSession.CanPause-Eigenschaft .

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

Eigenschaftswert

Boolean

bool

True, wenn die Medien angehalten werden können, andernfalls FALSE.

Attribute

Gilt für: