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

# ILampInfo::GetPurposes method

> Returns the LampPurposes flags describing what a Lamp on a LampArray is intended for, such as Control, Accent, Branding, Status, or Illumination.

# ILampInfo::GetPurposes

Returns the set of purposes for which the Lamp is intended to be used.

## Syntax

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

### Parameters

This method has no parameters.

### Return value

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

A set of flags indicating the purposes for which the Lamp is intended to be used.

## Requirements

**Header:** LampArray.h

**Library:** xgameplatform.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[Lighting API Overview](/build/core-features/common/lighting/gc-lighting-toc)\
[ILampInfo](/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [ILampArray::GetLampInfo method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo.md)
- [ILampInfo::GetIndex method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
- [ILampInfo::GetPosition method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition.md)
- [ILampInfo::GetNearestSupportedColor method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getnearestsupportedcolor.md)
- [ILampInfo::GetFixedColor method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getfixedcolor.md)
