GlobalSystemMediaTransportControlsSession.TryChangeShuffleActiveAsync 方法

定义

尝试更改会话是否正在主动洗牌。

public:
 virtual IAsyncOperation<bool> ^ TryChangeShuffleActiveAsync(bool requestedShuffleState) = TryChangeShuffleActiveAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryChangeShuffleActiveAsync(bool const& requestedShuffleState);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryChangeShuffleActiveAsync(bool requestedShuffleState);
function tryChangeShuffleActiveAsync(requestedShuffleState)
Public Function TryChangeShuffleActiveAsync (requestedShuffleState As Boolean) As IAsyncOperation(Of Boolean)

参数

requestedShuffleState
Boolean

bool

要切换到的请求的随机状态。

返回

True 表示成功;否则为 False

属性

Windows 要求

应用功能
globalMediaControl

适用于