共用方式為


Lights.SwitchOn(Int32, Int32, Int32, LightColors, LightAlarms) Method

Definition

Switches on the specified light or lets it blink.

public abstract void SwitchOn (int lightNumber, int blinkOnCycle, int blinkOffCycle, Microsoft.PointOfService.LightColors color, Microsoft.PointOfService.LightAlarms alarm);
abstract member SwitchOn : int * int * int * Microsoft.PointOfService.LightColors * Microsoft.PointOfService.LightAlarms -> unit
Public MustOverride Sub SwitchOn (lightNumber As Integer, blinkOnCycle As Integer, blinkOffCycle As Integer, color As LightColors, alarm As LightAlarms)

Parameters

lightNumber
Int32

Specifies the light number. Valid light numbers are 1 through MaxLights.

blinkOnCycle
Int32

A zero (0) value indicates no blink cycle. A positive value indicates the blink on cycle time in milliseconds. Negative values are not allowed.

blinkOffCycle
Int32

A zero (0) value indicates no blink cycle. A positive value indicates the blink off cycle time in milliseconds. Negative values are not allowed.

color
LightColors

Specifies the color of the light, must be one of the colors defined by CapColor.

alarm
LightAlarms

Specifies the used alarm type, must be one of the alarms defined by CapAlarm.

Applies to