Click or drag to resize

SignalSetAspect Method (Byte, CancellationToken)

Sets the signal's active aspect by value.

Namespace:  RRAutoLib.CTC
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Function SetAspect ( 
	bytAspectValue As Byte,
	Optional sctCancelToken As CancellationToken = Nothing
) As Task(Of Boolean)

Parameters

bytAspectValue
Type: SystemByte
A SignalSignalAspect member that is valid for this signal configuration.
sctCancelToken (Optional)
Type: System.ThreadingCancellationToken
Token provided by a controlling source to notify this method that it should cancel its execution.

Return Value

Type: TaskBoolean
An awaitable Task returning True on success, otherwise False.

Implements

IPkStatesSetState(Byte, CancellationToken)
Remarks
The CtcService must be started otherwise a CtcIsStoppedException will be thrown.
See Also