Udostępnij za pośrednictwem


DownloadCollection.id

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

Note

This section describes functionality designed for use by online stores. Use of this functionality outside the context of an online store is not supported.

The id property retrieves the ID of the download collection.

Syntax

DownloadManager.getDownloadCollection(
        collectionId
        ).id
      

Possible Values

This property is a read-only Number (long).

Remarks

When the Download Manager creates a new download collection, it assigns the collection an ID number. ID numbers persist between Windows Media Player sessions and operating system sessions.

ID numbers are not unique. However, there are enough ID numbers available in the 32-bit value that it is extremely unlikely that an existing ID number will ever be overwritten by a new one.

Requirements

Requirement Value
Version
Windows Media Player 9 Series or later
DLL
Wmp.dll

See also

DownloadCollection Object