Register a C#-function to implement a Prolog predicate.
After this call returns successfully, a predicate with name (a string) and arity arity (a C# int) is created in module module.
If module is NULL, the predicate is created in the module of the calling context or if no context is present in the module user.

Add a additional namespace by:
using SbsSW.SwiPlCs.Callback;

For an example see DelegateParameter2 and DelegateParameter1.

Icon | Member | Description |
---|---|---|
![]() ![]() | RegisterForeign(Delegate) | Register a C# callback method |
![]() ![]() | RegisterForeign(String, Delegate) | Register a C# callback method |
![]() ![]() | RegisterForeign(String, Int32, Delegate) | Register a C# callback method |
![]() ![]() | RegisterForeign(String, String, Int32, Delegate) | Register a C# callback method |

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