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

# GetIndex

> Retourne l'indice numérique d'un Lamp au sein de son LampArray parent, ce qui permet aux titres de faire correspondre un ILampInfo à l'indice utilisé par les méthodes ILampArray.

# ILampInfo::GetIndex

Retourne l'indice du LampArray auquel se trouve le Lamp donné.

## Syntaxe

```cpp theme={null}
uint32_t GetIndex(
)
```

### Paramètres

Cette méthode n'a aucun paramètre.

### Valeur de retour

Type : uint32\_t

L'indice du Lamp dans le LampArray.

## Remarques

Les indices de Lamps valides sont compris entre 0 et [ILampArray::GetLampCount](https://docs.xbox.com/fr/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount.md) - 1.

## Configuration requise

**En-tête :** LampArray.h

**Bibliothèque :** xgameplatform.lib

**Plateformes prises en charge :** consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

[Vue d'ensemble de l'API d'éclairage](https://docs.xbox.com/fr/build/core-features/common/lighting/gc-lighting-toc.md)\
[ILampArray::GetLampInfo](https://docs.xbox.com/fr/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo.md)\
[ILampInfo](https://docs.xbox.com/fr/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)


## Related topics

- [ILampInfo (contenu de l'interface)](https://docs.xbox.com/fr/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)
- [GetMotorIndex](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getmotorindex.md)
- [GetExtraAxisIndexes](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getextraaxisindexes.md)
- [GetExtraButtonIndexes](https://docs.xbox.com/fr/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getextrabuttonindexes.md)
- [HCWebSocketGetHeaderAtIndex](https://docs.xbox.com/fr/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheaderatindex.md)
