Menu.PreInit Method | |
Implement customized initialization code for the server.
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax Remarks
This method is used to customize the initialization code for a server.
The customized initialization code will not be overridden by the generated default initialization code.
A call to PreInit() is automatically generated at the beginning of the Init() method.
The default implementation of PostInit() in this class is empty.
Tip |
---|
In .Net it is normally not allowed or recommended to run code in a class before the parent constructor is called.
The generated code in the Window editor does this (it calls PreInit before the SUPER() call). We advise you to
be very careful not to touch protected instance variables inherited from parent classes, since these may not be
initialized and/or values that you assign to them may be overwritten in the constructor of the parent class.
|
See Also