Partager via


IWMPSettings2::mediaAccessRights property

[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 mediaAccessRights property gets a value indicating the permissions currently granted for library access.

This property is read-only.

Syntax

public System.String mediaAccessRights {get;}

Public ReadOnly Property mediaAccessRights As System.String

Property value

A System.String that is one of the following values.

Value Description
none Current item access rights only.
read Read access rights only.
full Read/Write access rights.

Remarks

A webpage must first request permission from the user to read information from or write data to the library. This means that certain methods, properties, and events will be inaccessible from code if the appropriate access rights have not been granted. To obtain access rights, the application calls IWMPSettings2.get_requestMediaAccessRights, passing a parameter that specifies the desired access rights level.

Applications running on the user's computer always have full access rights.

Requirements

Requirement Value
Version
Windows Media Player 9 Series or later
Namespace
WMPLib
Assembly
Interop.WMPLib.dll (Interop.WMPLib.dll.dll)

See also

IWMPSettings2 Interface (VB and C#)

IWMPSettings2.requestMediaAccessRights (VB and C#)