RegisterForeign Method (method)

SWI-Prolog SbsSW.SwiPlCs

Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog RegisterForeign Method (method)
SwiPlCs interfaceSbsSW.SwiPlCsPlEngineRegisterForeign(Delegate)

Register a C# callback method

Declaration Syntax
C# Visual Basic Visual C++
public static bool RegisterForeign(
	Delegate method
)
Public Shared Function RegisterForeign ( _
	method As Delegate _
) As Boolean
public:
static bool RegisterForeign(
	Delegate^ method
)
Parameters
method (Delegate)
a delegate to a c# method SbsSW.SwiPlCs.Callback
Return Value
true if registration succeed otherwise false
Examples
For an example see DelegateParameter2 and DelegateParameter1.

Assembly: SwiPlCs (Module: SwiPlCs) Version: 1.1.60301.0 (1.1.60301.0)