IWMPLibrary (VB and C#) interface

[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.]

Represents a library.

The IWMPLibrary interface exposes the following properties.

Members

The IWMPLibrary (VB and C#) interface has these types of members:

Methods

The IWMPLibrary (VB and C#) interface has these methods.

Method Description
isIdentical Returns a value that indicates whether the supplied object is the same as the current one.

Properties

The IWMPLibrary (VB and C#) interface has these properties.

Property Access type Description
mediaCollection
Read-only
Gets an IWMPMediaCollection interface for the current library.
name
Read-only
Gets the display name of the current library.
type
Read-only
Gets a value that indicates the library type.

Get an IWMPLibrary interface by using the following method.

Object Property
IWMPLibraryServices getLibraryByType

Requirements

Requirement Value
Header
Wmp.h

See also

Interfaces for Visual Basic .NET and C#

IWMPLibraryServices.getLibraryByType (VB and C#)