Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog
Initialize Method (argv)
SwiPlCs interfaceSbsSW.SwiPlCsPlEngineInitialize(array<String>[]()[][])

Initialise SWI-Prolog

The write method of the output stream is redirected to SbsSW.SwiPlCs.Streams before Initialize. The read method of the input stream just after Initialize.

Declaration Syntax
C#Visual BasicVisual C++F#
public static void Initialize(
	string[] argv
)
Public Shared Sub Initialize ( 
	argv As String()
)
public:
static void Initialize(
	array<String^>^ argv
)
static member Initialize : 
        argv : string[] -> unit 
Parameters
argv (array<String>[]()[][])

For a complete parameter description see the SWI-Prolog reference manual section 2.4 Command-line options.

sample parameter:

 Copy imageCopy
String[] param = { "-q", "-f", @"some\filename" };
At the first position a parameter "" is added in this method. PL_initialise

Remarks

A known bug: Initialize work *not* as expected if there are e.g. German umlauts in the parameters See marshalling in the sorce NativeMethods.cs

Examples
For an example see PlEngine

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