Visual Basic (Declaration) | |
---|---|
Event PlayStateChanged As EventHandler(Of PlayStateEventArgs) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ICinePlayer Dim handler As EventHandler(Of PlayStateEventArgs) AddHandler instance.PlayStateChanged, handler |
C# | |
---|---|
event EventHandler<PlayStateEventArgs> PlayStateChanged |
Managed Extensions for C++ | |
---|---|
__event EventHandler<PlayStateEventArgs*>* PlayStateChanged |
C++/CLI | |
---|---|
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