Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog
Query Method (queryType)
SwiPlCs interface ► SbsSW.SwiPlCs ► PlQuery ► Query(PlQuerySwitch)
Obtain status information on the Prolog system. The actual argument type depends on the information required. The parameter queryType describes what information is wanted.
Returning pointers and integers as a long is bad style. The signature of this function should be changed.
PlQuerySwitch
C# | Visual Basic | Visual C++ |
public static long Query( PlQuerySwitch queryType )
Public Shared Function Query ( _ queryType As PlQuerySwitch _ ) As Long
public: static long long Query( PlQuerySwitch queryType )

- queryType (PlQuerySwitch)
- A PlQuerySwitch.

A int depending on the given queryType

This sample shows how to get SWI-Prologs version number

public void Pl_query_version() { long v = PlQuery.Query(PlQuerySwitch.Version); Assert.AreEqual(60301, v, "SWI-Prolog version number "); }