Share via


IWMPMediaCollection2::getByAttributeAndMediaType method

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The getByAttributeAndMediaType method returns an IWMPPlaylist interface that provides access to media items that have a specified attribute and media type.

Syntax

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

Parameters

bstrAttribute [in]

The System.String that is the specified attribute.

bstrValue [in]

The System.String that is the specified value for the attribute that is specified in bstrAttribute.

bstrMediaType [in]

The System.String that is the specified media type.

Return value

A WMPLib.IWMPPlaylist interface for the retrieved playlist.

Requirements

Requirement Value
Version
Windows Media Player 11.
Namespace
WMPLib
Assembly
Interop.WMPLib.dll (Interop.WMPLib.dll.dll)

See also

IWMPMediaCollection2 Interface (VB and C#)

IWMPPlaylist Interface (VB and C#)