DataServer.PreInit Method (Typed) | |
Implement customized initialization code for the server.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD PreInit() AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual PreInit()
Request Example
View SourceReturn Value
Type:
UsualRemarks
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