共用方式為


LampArrayBlinkEffect.Occurrences 屬性

定義

此效果將播放的出現次數。

public:
 property int Occurrences { int get(); void set(int value); };
int Occurrences();

void Occurrences(int value);
public int Occurrences { get; set; }
var int32 = lampArrayBlinkEffect.occurrences;
lampArrayBlinkEffect.occurrences = int32;
Public Property Occurrences As Integer

屬性值

Int32

int

預設值為 0。

範例

LampArray 範例

示範如何使用 Windows.Devices.LightsWindows.Devices.Lights.Effects API 來控制周邊裝置的 RGB 光源。

AutoRGB 範例

示範如何從桌面畫面擷取單一代表性色彩,並用它來在連線的 RGB 裝置上光源 LED 燈。

備註

如果 RepetitionMode 是 Forever,則會忽略此動作。

在您附加 (看到將效果) 附加LampArrayEffectPlaylist之後,就會鎖定此屬性的值,而且您無法再變更它。

適用於

另請參閱