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

# ILampArray::GetIsEnabled 方法

> 傳回目前處理序目前是否獲准透過 GDK 照明 API 驅動 LampArray 周邊裝置上的照明。

# ILampArray::GetIsEnabled

取得 ILampArray 對目前處理序的啟用狀態。

## 語法

```cpp theme={null}
bool GetIsEnabled(
)
```

### 參數

此方法沒有參數。

### 傳回值

類型：bool

ILampArray 的啟用狀態：如果裝置已啟用則為 true，否則為 false。根據預設，ILampArray 為已啟用。

## 需求

**標頭：** LampArray.h

**程式庫：** xgameplatform.lib

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

## 另請參閱

[照明 API 概觀](/zh-TW/build/core-features/common/lighting/gc-lighting-toc)\
[ILampArray::SetIsEnabled](/zh-TW/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setisenabled)\
[ILampArray](/zh-TW/reference/lighting/lamparray/interfaces/ilamparray/ilamparray)


## Related topics

- [ILampArray::SetIsEnabled 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setisenabled.md)
- [ILampArray::SetColor 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_setcolor.md)
- [ILampArray::GetLampArrayKind 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlamparraykind.md)
- [ILampArray::GetLampInfo 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo.md)
- [ILampArray::GetLampCount 方法](/zh-TW/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount.md)
