共用方式為


CodecQuery 類別

定義

提供 FindAllAsync 方法,可讓您列舉安裝在系統上的所有媒體編解碼器。

public ref class CodecQuery sealed
/// [Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CodecQuery final
[Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CodecQuery
function CodecQuery()
Public NotInheritable Class CodecQuery
繼承
Object Platform::Object IInspectable CodecQuery
屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

建構函式

CodecQuery()

初始化 CodecQuery 類別的新實例。

方法

FindAllAsync(CodecKind, CodecCategory, String)

會傳回安裝在系統上且符合指定需求之所有媒體編解碼器的唯讀清單。

適用於