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

適用於