LampArrayEffectPlaylist.GetMany(UInt32, ILampArrayEffect[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索一系列灯阵列效果,从播放列表中的指定索引开始。
public:
virtual unsigned int GetMany(unsigned int startIndex, Platform::Array <ILampArrayEffect ^> ^ items) = IVectorView<ILampArrayEffect ^>::GetMany;
uint32_t GetMany(uint32_t const& startIndex, winrt::array_view <ILampArrayEffect const&> & items);
public uint GetMany(uint startIndex, ILampArrayEffect[] items);
function getMany(startIndex, items)
Public Function GetMany (startIndex As UInteger, items As ILampArrayEffect()) As UInteger
参数
- startIndex
-
UInt32
unsigned int
uint32_t
要检索的第一个灯阵列效果的从零开始的索引。
- items
- ILampArrayEffect[]
一个 ILampArrayEffect 数组,该方法将使用请求的效果进行更新。
返回
项中返回的效果数。
实现
M:Windows.Foundation.Collections.IVectorView
1.GetMany(System.UInt32,0[])
M:Windows.Foundation.Collections.IVectorView1.GetMany(unsigned int,0[])
M:Windows.Foundation.Collections.IVectorView1.GetMany(uint32_t,0[])
示例
演示如何使用 Windows.Devices.Lights 和 Windows.Devices.Lights.Effects API 控制外围设备的 RGB 照明。
演示如何从桌面屏幕中提取具有代表性的单一颜色,并使用它来照亮连接的 RGB 设备上的 LED 灯。