![Copy image Copy image](icons/copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog
PlCall Method (goal)
SwiPlCs interface ► SbsSW.SwiPlCs ► PlQuery ► PlCall(String)
Call a goal once.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ | F# |
public static bool PlCall( string goal )
Public Shared Function PlCall ( goal As String ) As Boolean
public: static bool PlCall( String^ goal )
static member PlCall : goal : string -> bool
![](collapse_all.gif)
- goal (String)
- The complete goal as a string
![](collapse_all.gif)
Boolean
Return true or false as the result of NextSolution() or throw an exception.
Return true or false as the result of NextSolution() or throw an exception.
![](collapse_all.gif)
Create a PlQuery from the arguments, generates the first solution by NextSolution() and destroys the query.
![](collapse_all.gif)
![]() |
|
---|---|
Assert.IsTrue(PlQuery.PlCall("is_list([a,b,c,d])"));
|
![]() |
|
---|---|
Assert.IsTrue(PlQuery.PlCall("consult('some_file_name')"));
|
Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60605.0 (1.1.60605.0)