> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetProductId

> ILampArray::GetProductId

# ILampArray::GetProductId

检索 ILampArray 的硬件产品 ID。

## 语法

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

### 参数

此方法没有参数。

### 返回值

类型：uint16\_t

硬件产品 ID。

## 要求

**头文件：** LampArray.h

**库：** xgameplatform.lib

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[光照 API 概览](https://docs.xbox.com/zh-CN/build/core-features/common/lighting/gc-lighting-toc.md)\
[ILampArray](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)


## Related topics

- [ILampArray（接口内容）](https://docs.xbox.com/zh-CN/reference/lighting/lamparray/interfaces/ilamparray/ilamparray.md)
- [XStoreQueryAssociatedProductsForStoreIdResult](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidresult.md)
- [Get Multiplayer Session Logs By Session Id](https://docs.xbox.com/api-reference/multiplayerserver/get-multiplayer-session-logs-by-session-id.md)
- [Get All Segments](https://docs.xbox.com/api-reference/playstream/get-all-segments.md)
- [XStoreProduct](https://docs.xbox.com/zh-CN/reference/system/xstore/structs/xstoreproduct.md)
