Visual Basic (Declaration) | |
---|---|
Public Event PlayStateChanged As EventHandler(Of PlayStateEventArgs) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As CinePlayer Dim handler As EventHandler(Of PlayStateEventArgs) AddHandler instance.PlayStateChanged, handler |
C# | |
---|---|
public event EventHandler<PlayStateEventArgs> PlayStateChanged |
Managed Extensions for C++ | |
---|---|
public: __event EventHandler<PlayStateEventArgs*>* PlayStateChanged |
C++/CLI | |
---|---|
public: event EventHandler<PlayStateEventArgs^>^ PlayStateChanged |
The event handler receives an argument of type PlayStateEventArgs containing data related to this event. The following PlayStateEventArgs properties provide information specific to this event.
Property | Description |
---|---|
CurrentState | Gets the current PlayState. |
OldState | Gets the old PlayState. |
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7