GlobalSystemMediaTransportControlsSession.TryGetMediaPropertiesAsync 方法

定义

尝试获取此会话的媒体属性。

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)

返回

表示会话的当前媒体项的 GlobalSystemMediaTransportControlsSessionMediaProperties 实例。

属性

Windows 要求

应用功能
globalMediaControl

适用于