Share via


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

GlobalSystemMediaTransportControlsSessionMediaProperties instance representing the session's current media item.

Attributes

Windows requirements

App capabilities
globalMediaControl

Applies to