Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog
Query Method (queryType)
SwiPlCs interfaceSbsSW.SwiPlCsPlQueryQuery(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
Declaration Syntax
C#Visual BasicVisual C++F#
public static long Query(
	PlQuerySwitch queryType
)
Public Shared Function Query ( 
	queryType As PlQuerySwitch
) As Long
public:
static long long Query(
	PlQuerySwitch queryType
)
static member Query : 
        queryType : PlQuerySwitch -> int64 
Parameters
queryType (PlQuerySwitch)
A PlQuerySwitch.
Return Value
Int64
A int depending on the given queryType
Examples

This sample shows how to get SWI-Prologs version number

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

Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60601.0 (1.1.60601.0)