Binds the engine to the command station so that it can be controlled.

Namespace: RRAutoLib.CTC
Assembly: RRAutoLib (in RRAutoLib.dll) Version: 1.4.4504.18867

Syntax

C#
public void BindSlot(
	bool blnSteal,
	bool blnExecSync
)
Visual Basic
Public Sub BindSlot ( _
	blnSteal As Boolean, _
	blnExecSync As Boolean _
)

Parameters

blnSteal
Type: System..::..Boolean
In cases when a normal bind would be rejected with a FailedInUse result, setting this parameter to True will force the bind by stealing the slot in use.
blnExecSync
Type: System..::..Boolean
By default (False) this method executes asynchronously and returns immediately. If set to True this method executes synchronously and blocks the thread until finished.

Remarks

The Slot property will be set to a value greater than 0 on success. The BindSlotResponse event will be raised on completion returning a Engine..::..BindSlotResult.

See Also