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

# WdDevicePropertyCallback

> WdDevicePropertyCallback

接收一個列舉的裝置中繼資料屬性。

**引進版本：** [RIT 0.0.14-preview](https://docs.xbox.com/zh-TW/reference/remoting/release-versions.md#release-versions)。

## 語法

```cpp theme={null}
typedef HRESULT(WD_REMOTE_ITERATION_CALL* WdDevicePropertyCallback)(
    _In_ const WdDeviceProperty* property,
    _In_opt_ void* context
);
```

### 參數

`property`\
類型：**const WdDeviceProperty\***

借用的屬性描述元與序列化的 JSON 值。

`context`\
類型：**void\***

提供給 API 的呼叫端擁有指標。

### 傳回值

傳回 `S_OK` 以繼續。失敗的 HRESULT 會停止列舉，並由 API 傳回。

## 備註

傳回 S\_OK 以繼續；失敗的 HRESULT 會停止列舉。

回呼會在 API 處理其結果或快照時、API 呼叫傳回之前傳遞。結構和字串的指標只在回呼期間借用；請複製之後需要的值。`context` 是提供給 API 的呼叫端擁有指標。

## 需求

| 需求 | 值 |
| - | - |
| **標頭** | WdRemoteIteration.h |
| **程式庫** | wdremoteapi.lib |
| **NuGet 套件** | [Microsoft.GDK.RemoteIterationClientApi](https://aka.ms/GameDevRemoteAPI) |

## 另請參閱

* [XBOX PC Remote Iteration API](https://docs.xbox.com/zh-TW/reference/remoting/remoteiteration_members.md)


## Related topics

- [WdEnumDeviceProperties](https://docs.xbox.com/zh-TW/reference/remoting/functions/wdenumdeviceproperties.md)
- [XBOX PC Remote Iteration API](https://docs.xbox.com/zh-TW/reference/remoting/remoteiteration_members.md)
- [WdGetDeviceProperty](https://docs.xbox.com/zh-TW/reference/remoting/functions/wdgetdeviceproperty.md)
- [WdDeviceProperty](https://docs.xbox.com/zh-TW/reference/remoting/structs/wddeviceproperty.md)
- [WdDeviceIdCallback](https://docs.xbox.com/zh-TW/reference/remoting/callbacks/wddeviceidcallback.md)
