GlobalSystemMediaTransportControlsSession.TryTogglePlayPauseAsync 方法

定义

尝试根据会话的当前播放状态请求启动或暂停播放。

public:
 virtual IAsyncOperation<bool> ^ TryTogglePlayPauseAsync() = TryTogglePlayPauseAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryTogglePlayPauseAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryTogglePlayPauseAsync();
function tryTogglePlayPauseAsync()
Public Function TryTogglePlayPauseAsync () As IAsyncOperation(Of Boolean)

返回

True 表示成功;否则为 False

属性

Windows 要求

应用功能
globalMediaControl

适用于