IWMPCdromCollection (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.]
Provides a way to organize and access a collection of CD or DVD drives.
The IWMPCdromCollection interface exposes the following property.
Members
The IWMPCdromCollection (VB and C#) interface has these types of members:
Methods
The IWMPCdromCollection (VB and C#) interface has these methods.
Method | Description |
---|---|
getByDriveSpecifier | Returns an IWMPCdrom interface associated with a particular drive letter. |
Item | Returns an IWMPCdrom interface at the given index. |
Properties
The IWMPCdromCollection (VB and C#) interface has these properties.
Property | Access type | Description |
---|---|---|
count |
Read-only |
Gets the number of available CD and DVD drives on the system. |
Get an IWMPCdromCollection interface by using the following property.
Object | Property |
---|---|
AxWindowsMediaPlayer Object | cdromCollection |
Requirements
Requirement | Value |
---|---|
Header |
|