GetVersion |
Scroll |
Gets the current Thereforeā¢ major version, minor version and build number.
Namespace: Therefore.API
Visual Basic Public Overridable Function GetVersion ( pnMajor As Integer, _ pnMinor As Integer, _ pnBuild As Integer _ ) C# public virtual void GetVersion ( out int pnMajor, out int pnMinor, out int pnBuild )
Parameters [out] pnMajor Major version.
[out] pnMinor Minor version.
[out] pnBuild Build number.
Return Value None. |
Connection Not Required It does not matter whether or not the server is connected when you call this method. |
Example |
Visual Basic Dim server As New TheServer Dim major, minor, build As Integer server.GetVersion(major, minor, build) Console.WriteLine("Thereforeā¢ Version = {0}.{1}.{2}", major, minor, build) C# TheServer server = new TheServer(); int major, minor, build; server.GetVersion(out major, out minor, out build); Console.WriteLine("Thereforeā¢ Version = {0}.{1}.{2}", major, minor, build);
|