Κοινή χρήση μέσω


CdromCollection Object

[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 CdromCollection object provides a way to organize and access a collection of CD or DVD drives.

The CdromCollection object supports the following property.

Property Description
count Retrieves the number of available CD and DVD drives on the system.

 

The CdromCollection object supports the following methods.

Method Description
getByDriveSpecifier Retrieves the Cdrom object associated with a particular drive letter.
item Retrieves the Cdrom object at the given index.

 

The CdromCollection object is accessed through the following property.

Object Property
Player cdromCollection

 

See also

Object Model Reference for Scripting