InfoConnect for Airlines
Start(String) Method
Example 


The name of the application instance. This name must be unique among active application instances in order to be reachable by .Net API programs. The channel name must have the same format as a valid Internet hostname. Names can contain only the ASCII letters 'a' through 'z' (in a case-insensitive manner), the digits '0' through '9', and the hyphen ('-'). No other symbols, punctuation characters, or white space are permitted.
Starts and names a visible InfoConnect application instance when the InfoConnect Workspace "API Settings" .Net API option is enabled.
Syntax
'Declaration
 
Public Overloads Shared Function Start( _
   ByVal channelName As String _
) As Guid
'Usage
 
Dim channelName As String
Dim value As Guid
 
value = MyReflection.Start(channelName)
public static Guid Start( 
   string channelName
)

Parameters

channelName
The name of the application instance. This name must be unique among active application instances in order to be reachable by .Net API programs. The channel name must have the same format as a valid Internet hostname. Names can contain only the ASCII letters 'a' through 'z' (in a case-insensitive manner), the digits '0' through '9', and the hyphen ('-'). No other symbols, punctuation characters, or white space are permitted.

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 the ForceStop() method only after the Close() method fails.)

The channelName parameter can be any valid string. Use the same channelName string in CreateApplication(channelName) to create an Application object.

Example
The following example shows how to start two new application instances with unique IPC channel names.

	
See Also