> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Référence de l'énumération LampArrayEnumerationKind

> Énumération qui détermine si l'énumération initiale des LampArray dans RegisterLampArrayStatusCallback s'exécute de façon asynchrone ou bloque jusqu'à ce que chaque appareil se signale.

# Énumération LampArrayEnumerationKind

Décrit le comportement d'énumération des appareils souhaité pour une fonction LampArrayStatusCallback nouvellement inscrite. Utilisé avec [RegisterLampArrayStatusCallback](/fr-CA/reference/lighting/lamparray/functions/registerlamparraystatuscallback), ce comportement s'applique uniquement aux LampArrays connectés au moment de l'inscription.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
enum class LampArrayEnumerationKind : uint32_t
{
    Async       = 1,
    Blocking    = 2
};
```

<a id="constantsSection" />

## Constantes

| Constante | Description |
| - | - |
| Async | L'appel à [RegisterLampArrayStatusCallback](/fr-CA/reference/lighting/lamparray/functions/registerlamparraystatuscallback) doit retourner immédiatement, et l'énumération des LampArrays connectés doit se produire de façon asynchrone sur le thread de travail dédié aux rappels LampArray. |
| Blocking | L'appel à [RegisterLampArrayStatusCallback](/fr-CA/reference/lighting/lamparray/functions/registerlamparraystatuscallback) doit bloquer jusqu'à ce que tous les LampArrays connectés aient été énumérés. |

<a id="remarksSection" />

## Remarques

Le paramètre **LampArrayEnumerationKind** de [RegisterLampArrayStatusCallback](/fr-CA/reference/lighting/lamparray/functions/registerlamparraystatuscallback) permet à l'appelant de préciser comment il doit recevoir les rappels pour les appareils LampArray connectés au moment de l'appel. Si **LampArrayEnumerationKind::Blocking** est sélectionné, la fonction RegisterLampArrayStatusCallback bloque jusqu'à ce que ce rappel soit appelé pour chaque appareil connecté (ce qui signifie que le rappel sera appelé sur le thread appelant).

Lorsque le premier rappel est inscrit, l'API LampArray démarre un thread de travail pour gérer les notifications d'état des appareils **ILampArray**. Ces événements sont peu fréquents, et le thread de travail reste autrement en état d'attente. Une fois l'appel d'inscription retourné, tous les LampArrayStatusCallbacks subséquents sont appelés séquentiellement sur ce thread de travail.

Si **LampArrayEnumerationKind::Async** est spécifié, l'appel d'inscription retourne immédiatement, et les LampArrays connectés au moment de l'appel sont énumérés sur le thread de travail des rappels LampArray mentionné précédemment.

<a id="requirementsSection" />

## Configuration requise

**En-tête :** déclaré dans LampArray.h.

<a id="seealsoSection" />

## Voir aussi

[Vue d'ensemble de l'API d'éclairage](/fr-CA/build/core-features/common/lighting/gc-lighting-toc)\
[RegisterLampArrayStatusCallback](/fr-CA/reference/lighting/lamparray/functions/registerlamparraystatuscallback)


## Related topics

- [Référence de l'énumération LampArrayKind](/fr-CA/reference/lighting/lamparray/enums/lamparraykind.md)
- [Référence de l'énumération LampArrayStatus](/fr-CA/reference/lighting/lamparray/enums/lamparraystatus.md)
- [Référence de l'énumération LampPurposes](/fr-CA/reference/lighting/lamparray/enums/lamppurposes.md)
- [Référence de l'API d'éclairage pour les périphériques LampArray](/fr-CA/reference/lighting/gc-reference-lighting-toc.md)
- [Fonction RegisterLampArrayStatusCallback](/fr-CA/reference/lighting/lamparray/functions/registerlamparraystatuscallback.md)
