Register a C# callback method
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public static bool RegisterForeign( string module, Delegate method )
Public Shared Function RegisterForeign ( module As String, method As Delegate ) As Boolean
public: static bool RegisterForeign( String^ module, Delegate^ method )
static member RegisterForeign : module : string * method : Delegate -> bool
Parameters
- module (String)
- the name of a prolog module Using Modules
- method (Delegate)
- a delegate to a c# method SbsSW.SwiPlCs.Callback
Return Value
Boolean
true if registration succeed otherwise false
true if registration succeed otherwise false
Examples
For an example see DelegateParameter2 and DelegateParameter1.
Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60601.0 (1.1.60601.0)