GlobalSystemMediaTransportControlsSession.TryGetMediaPropertiesAsync Method

Definition

Attempts to get the media properties for this session.

public:
 virtual IAsyncOperation<GlobalSystemMediaTransportControlsSessionMediaProperties ^> ^ TryGetMediaPropertiesAsync() = TryGetMediaPropertiesAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GlobalSystemMediaTransportControlsSessionMediaProperties> TryGetMediaPropertiesAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GlobalSystemMediaTransportControlsSessionMediaProperties> TryGetMediaPropertiesAsync();
function tryGetMediaPropertiesAsync()
Public Function TryGetMediaPropertiesAsync () As IAsyncOperation(Of GlobalSystemMediaTransportControlsSessionMediaProperties)

Returns

IAsyncOperation<GlobalSystemMediaTransportControlsSessionMediaProperties>

GlobalSystemMediaTransportControlsSessionMediaProperties instance representing the session's current media item.

Attributes

Windows 10 requirements

App capabilities
globalMediaControl

Applies to