GetDotNetCoreVersion
PowerScript function
Description
Gets the version number of the .NET Core runtime that is currently
used to load DLL.
Applies to
DotNetAssembly objects
Syntax
|
1 |
objectname.GetDotNetCoreVersion() |
|
Argument |
Description |
|---|---|
|
objectname |
The name of the DotNetAssembly object. |
Return value
String.
Returns the version number of .NET Core runtime; or returns an empty
string if .NET Framework is used.
Examples
The following example returns the latest .NET Core version that is
installed on the machine.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
long ll_return string ls_version DotNetAssembly lcs_ass lcs_ass = create DotNetAssembly //Uses the latest .NET core version to load DLL ll_return = lcs_ass.LoadWithDotNetCore ("Appeon.Simple.DLL") if ll_return < 0 then MessageBox ("Load dll failed", lcs_ass.errortext) return end if //Returns the latest .NET core version ls_version = lcs_ass.GetDotNetCoreVersion( ) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest