Visual Basic (Declaration) | |
---|---|
Protected Overridable Sub OnServerOptionChanged( _ ByVal e As OptionEventArgs _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Telnet Dim e As OptionEventArgs instance.OnServerOptionChanged(e) |
C# | |
---|---|
protected virtual void OnServerOptionChanged( OptionEventArgs e ) |
Managed Extensions for C++ | |
---|---|
protected: virtual void OnServerOptionChanged( OptionEventArgs* e ) |
C++/CLI | |
---|---|
protected: virtual void OnServerOptionChanged( OptionEventArgs^ e ) |
Parameters
- e
- An OptionEventArgs.
Raising an event invokes the event handler through a delegate. The Synchronizing property must be set.
The OnServerOptionChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
Note to Inheritors: When overriding OnServerOptionChanged in a derived class, be sure to call the base class OnServerOptionChanged method, so that registered delegates receive the event.
See the SynchronizingObject property for important information on updating UI controls from within derived classes and events.
Target Platforms: Microsoft .NET Framework 2.0