GlobalSystemMediaTransportControlsSession.TryPlayAsync 方法

定义

尝试请求会话开始播放。

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

返回

True 表示成功;否则为 False

属性

Windows 要求

应用功能
globalMediaControl

适用于