> ## 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.

# Méthode ILampInfo::GetPurposes

> Retourne les indicateurs LampPurposes décrivant l'usage prévu d'une Lamp d'un LampArray, par exemple Control, Accent, Branding, Status ou Illumination.

# ILampInfo::GetPurposes

Retourne l'ensemble des usages auxquels la Lamp est destinée.

## Syntaxe

```cpp theme={null}
LampPurposes GetPurposes(
)
```

### Paramètres

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

### Valeur de retour

Type : [LampPurposes](/fr-CA/reference/lighting/lamparray/enums/lamppurposes)

Un ensemble d'indicateurs précisant les usages auxquels la Lamp est destinée.

## 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](/fr-CA/build/core-features/common/lighting/gc-lighting-toc)\
[ILampInfo](/fr-CA/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [Méthode ILampInfo::GetIndex](/fr-CA/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
- [Méthode ILampInfo::GetPosition](/fr-CA/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition.md)
- [Méthode ILampInfo::GetNearestSupportedColor](/fr-CA/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [Méthode ILampInfo::GetFixedColor](/fr-CA/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getfixedcolor.md)
- [Méthode ILampInfo::GetScanCode](/fr-CA/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getscancode.md)
