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

> 傳回 LampArray 周邊裝置所回報的 USB 產品識別碼，讓遊戲能偵測特定硬體型號以套用自訂照明效果。

# ILampArray::GetProductId

擷取 ILampArray 的硬體產品識別碼。

## 語法

```cpp theme={null}
uint16_t GetProductId(
)
```

### 參數

此方法沒有參數。

### 傳回值

類型：uint16\_t

硬體產品識別碼。

## 需求

**標頭：** LampArray.h

**程式庫：** xgameplatform.lib

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

## 另請參閱

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


## Related topics

- [ILampArray::GetProductId](/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getproductid.md)
- [ILampArray::GetProductId method](/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getproductid.md)
- [Método ILampArray::GetProductId](/es/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getproductid.md)
- [ILampArray::GetVendorId](/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getvendorid.md)
- [ILampArray::GetDeviceId](/ko/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getdeviceid.md)
