AxWindowsMediaPlayer.status 属性

[与此页面关联的功能(Windows 媒体播放器 SDK)是旧版功能。 它已被 MediaPlayer 取代。 MediaPlayer 已针对Windows 10和Windows 11进行了优化。 如果可能,Microsoft 强烈建议新代码使用 MediaPlayer 而不是 Windows 媒体播放器 SDK。 如果可能,Microsoft 建议重写使用旧 API 的现有代码以使用新 API。]

status 属性获取一个值,该值指示Windows 媒体播放器的状态。

此属性为只读。

语法

public System.String status {get;}

Public ReadOnly Property status As System.String

属性值

作为状态的 System.String。

备注

此属性中包含的值随时可能更改,并且仅用于显示目的。

AxWindowsMediaPlayer。每当此属性更改值时,将触发 StatusChange 事件。

要求

要求
版本
Windows 媒体播放器 9 系列或更高版本
命名空间
AxWMPLib
程序集
AxInterop.WMPLib.dll (AxInterop.WMPLib.dll.dll)

另请参阅

AxWindowsMediaPlayer 对象 (VB 和 C#)

AxWindowsMediaPlayer.StatusChange 事件 (VB 和 C#)