Using Predefined Constants
Reflection 2008 frequently uses predefined constants in place of numbers to make macros easier to read. Predefined constants may be used as method arguments, property values, or error codes.
The last two lines in the following example show equivalent ways to handle errors in IBM sessions. The first statement uses a Reflection predefined constant, and the second statement uses the numeric equivalent:
Dim ret As ReturnCode
If ret = ReturnCode.ReturnCode_Timeout Then MsgBox "Time out"
Using Predefined Constants in Other Applications
You can use Reflection predefined constants in other applications by selecting the Reflection class libraries.