GlobalSystemMediaTransportControlsSession.TryChangePlaybackPositionAsync 方法

定义

尝试将会话上的播放位置更改为指定时间(以刻度为单位)。

public:
 virtual IAsyncOperation<bool> ^ TryChangePlaybackPositionAsync(long long requestedPlaybackPosition) = TryChangePlaybackPositionAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryChangePlaybackPositionAsync(long const& requestedPlaybackPosition);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryChangePlaybackPositionAsync(long requestedPlaybackPosition);
function tryChangePlaybackPositionAsync(requestedPlaybackPosition)
Public Function TryChangePlaybackPositionAsync (requestedPlaybackPosition As Long) As IAsyncOperation(Of Boolean)

参数

requestedPlaybackPosition
Int64

long long

long

要查找的请求播放位置,以刻度为单位指定。

返回

True 表示成功;否则为 False

属性

Windows 要求

应用功能
globalMediaControl

适用于