GlobalSystemMediaTransportControlsSession.TryPlayAsync Method

Definition

Attempts to request the session to start playback.

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)

Returns

True indicates success; False otherwise

Attributes

Windows requirements

App capabilities
globalMediaControl

Applies to