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

# client_connected_to_network

> client_connected_to_network event.

客户端连接到网络时触发此事件。

## 属性

| 名称 | 类型 | 描述 |
| :- | :- | :- |
| ClientInstanceId | String | 由客户端生成的、此 Party 库实例的全局唯一标识符。 |
| NetworkIdentifier | String | 网络的唯一标识符。 |
| RegionName | String | 与网络的基础中继关联的区域名称。 |
| HostName | String | 客户端要连接到的中继的主机名。 |
| Port | uint16 | 客户端要连接到的端口。 |
| ConnectDurationInMs | uint32 | 独立连接操作的持续时间（以毫秒为单位）。 |
| TotalDurationInMs | uint32 | 连接操作以及在其之前排队的所有关联操作的持续时间（以毫秒为单位）。 |
| LocalConnectionId | uint32 | 用于区分单个客户端到同一网络的多个连接的本地标识符。 |
| Result | int32 | 操作的 PartyStateChangeResult。 |
| ResultMessage | String | Result 值的人类可读表示形式。 |
| ErrorDetail | uint32 | PartyError 错误详细信息代码。 |

## 常用属性

所有 V2 PlayStream 事件都格式化为 JSON 对象，其中大多数共享以下常用属性：

| 名称 | 类型 | 描述 |
| :- | :- | :- |
| SchemaVersion | String | PlayStream 事件格式版本，遵循语义化版本控制方案。 |
| FullName | [Object](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/data-types/fullnameobject.md) | 事件名称与事件命名空间的组合，用于完整指定事件类型。 |
| Id | String | PlayFab 为此事件分配的唯一标识符。 |
| Timestamp | DateTime | 与此事件关联的时间（UTC）。 |
| Entity | [Object](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/data-types/entityobject.md) | 有关此事件适用的实体的详细信息，包括 Entity Id 和 Entity 类型。 |
| Originator | [Object](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/data-types/originatorobject.md) | 描述发起此事件的源和源类型的对象。 |
| PayloadContentType | String | 指定事件负载的内容。默认值为 "JSON"。 |
| Origin Info | Object | 可选字段，包含有关源自 PlayFab 之外的事件的信息。 |


## Related topics

- [PlayStream 事件模型参考](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/index.md)
- [QueryConnectedStandby](https://docs.xbox.com/zh-CN/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_queryconnectedstandby.md)
- [QueryConnectedStandbyEx](https://docs.xbox.com/zh-CN/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_queryconnectedstandbyex.md)
- [Connected Storage](https://docs.xbox.com/zh-CN/services/xbox-services/storage/connected-storage/live-connected-storage-nav.md)
- [client_network_created](https://docs.xbox.com/zh-CN/services/playfab/api-references/events/Networking/client-network-created.md)
