InfoConnect for Airlines
Start(Boolean) Method
Example 


The Boolean value that indicates whether the InfoConnect application is visible.
Starts a (visible or invisible) InfoConnect application instance when the InfoConnect Workspace "API Settings" .Net API option is enabled.
Syntax
'Declaration
 
Public Overloads Shared Function Start( _
   ByVal visible As Boolean _
) As Guid
'Usage
 
Dim visible As Boolean
Dim value As Guid
 
value = MyReflection.Start(visible)
public static Guid Start( 
   bool visible
)

Parameters

visible
The Boolean value that indicates whether the InfoConnect application is visible.

Return Value

InfoConnect instance ID.
Remarks

This method returns an instance ID of type Guid if the call is successful; otherwise an exception is thrown. The returned instance ID uniquely identifies the application instance and is used as an input parameter in ForceStop(Guid instanceId) to stop the instance. (Use theForceStop()method only after theClose()method fails.)

To create an application object for the first application instance you create, use CreateApplication("InfoConnect_yourUserID"). For example, if your user ID is “SmithJ”, the channel name for the first application instance you created with Start(bool visible), would be “InfoConnect_SmithJ”.

If you need to create application objects for more than one application instance, use the overloaded version, Start(string channelName, bool visible), to create a known unique channelName for each application instance.

Example
The following example shows how to start a new, invisible application instance:

	
See Also