IWMPMediaCollection2::getByAttributeAndMediaType 方法
[与此页面关联的功能(Windows 媒体播放器 SDK)是旧版功能。 它已被 MediaPlayer 取代。 MediaPlayer 已针对Windows 10和Windows 11进行了优化。 如果可能,Microsoft 强烈建议新代码使用 MediaPlayer 而不是 Windows 媒体播放器 SDK。 如果可能,Microsoft 建议重写使用旧 API 的现有代码以使用新 API。]
方法 getByAttributeAndMediaType
返回一个 IWMPPlaylist 接口,该接口提供对具有指定属性和媒体类型的媒体项的访问。
语法
public IWMPPlaylist getByAttributeAndMediaType(
System.String bstrAttribute,
System.String bstrValue,
System.String bstrMediaType
);
Public Function getByAttributeAndMediaType( _
ByVal bstrAttribute As System.String, _
ByVal bstrValue As System.String, _
ByVal bstrMediaType As System.String _
) As IWMPPlaylist
Implements IWMPMediaCollection2.getByAttributeAndMediaType
参数
-
bstrAttribute [in]
-
作为指定属性的 System.String 。
-
bstrValue [in]
-
System.String,它是 bstrAttribute 中指定的特性的指定值。
-
bstrMediaType [in]
-
作为指定媒体类型的 System.String 。
返回值
检索到的播放列表的 WMPLib.IWMPPlaylist 接口。
要求
要求 | 值 |
---|---|
版本 |
Windows 媒体播放器 11. |
命名空间 |
WMPLib |
程序集 |
|
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈