> ## 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 方法

> 傳回 LampPurposes 旗標，描述 LampArray 上的 Lamp 預期用途，例如 Control、Accent、Branding、Status 或 Illumination。

# ILampInfo::GetPurposes

傳回 Lamp 預期使用的用途集合。

## 語法

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

### 參數

此方法沒有參數。

### 傳回值

類型：[LampPurposes](/zh-TW/reference/lighting/lamparray/enums/lamppurposes)

一組旗標，指出 Lamp 預期使用的用途。

## 需求

**標頭：** LampArray.h

**程式庫：** xgameplatform.lib

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[照明 API 概觀](/zh-TW/build/core-features/common/lighting/gc-lighting-toc)\
[ILampInfo](/zh-TW/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo)


## Related topics

- [ILampInfo::GetPurposes](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getpurposes.md)
- [ILampInfo::GetPurposes method](/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getpurposes.md)
- [Método ILampInfo::GetPurposes](/es/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getpurposes.md)
- [ILampInfo::GetIndex](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getindex.md)
- [ILampInfo::GetPosition](/zh-CN/reference/lighting/lamparray/interfaces/ilampinfo/methods/ilampinfo_getposition.md)
