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

# GetIndex

> ILampInfo::GetIndex

# ILampInfo::GetIndex

指定した Lamp が存在する LampArray 内のインデックスを返します。

## 構文

```cpp theme={null}
uint32_t GetIndex(
)
```

### パラメーター

このメソッドにはパラメーターがありません。

### 戻り値

Type: uint32\_t

Lamp の LampArray 内のインデックスです。

## 解説

有効な Lamp インデックスは、0 から [ILampArray::GetLampCount](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampcount.md) - 1 までの範囲です。

## 要件

**ヘッダー:** LampArray.h

**ライブラリ:** xgameplatform.lib

**サポートされているプラットフォーム:** XBOX One ファミリ本体および XBOX Series 本体

## 関連項目

[Lighting API の概要](https://docs.xbox.com/ja-jp/build/core-features/common/lighting/gc-lighting-toc.md)\
[ILampArray::GetLampInfo](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilamparray/methods/ilamparray_getlampinfo.md)\
[ILampInfo](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)


## Related topics

- [ILampInfo (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/interfaces/ilampinfo/ilampinfo.md)
- [GetMotorIndex](https://docs.xbox.com/ja-jp/reference/input/gameinput/interfaces/igameinputforcefeedbackeffect/methods/igameinputforcefeedbackeffect_getmotorindex.md)
- [HCWebSocketGetHeaderAtIndex](https://docs.xbox.com/ja-jp/reference/live/httpclient/httpprovider/functions/hcwebsocketgetheaderatindex.md)
- [XblHttpCallGetHeaderAtIndex](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/http_call_c/functions/xblhttpcallgetheaderatindex.md)
- [HCHttpCallResponseGetHeaderAtIndex](https://docs.xbox.com/ja-jp/reference/live/httpclient/httpclient/functions/hchttpcallresponsegetheaderatindex.md)
