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
程序集
Interop.WMPLib.dll (Interop.WMPLib.dll.dll)

另请参阅

IWMPMediaCollection2 接口 (VB 和 C#)

IWMPPlaylist 接口 (VB 和 C#)