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

# VerifyStringResult (JSON)

> VerifyStringResult (JSON)

# VerifyStringResult (JSON)

對應於提交至 [/system/strings/validate](https://docs.xbox.com/zh-TW/reference/live/rest/uri/stringserver/uri-systemstringsvalidate.md) 之每個字串的結果代碼。

## VerifyStringResult

VerifyStringResult 物件具有下列規格。

| 成員 | 類型 | 描述 |
| - | - | - |
| resultCode | 32 位元不帶正負號整數 | 必要。對應於已提交字串的 HResult 代碼。 |
| offendingString | string | 必要。導致字串遭到拒絕的字串值。 |

## 範例 JSON 語法

```json theme={null}
{
    "verifyStringResult":
    [
        {"resultCode": "1", "offendingString": "badword"},
        {"resultCode": "0", "offendingString": ""},
        {"resultCode": "0", "offendingString": ""},
        {"resultCode": "0", "offendingString": ""},
    ]
}

```

#### 常見的 HResult 值

\| 值| 錯誤名稱|
\| --- | --- | --- | --- | --- |
\| 0| 成功|
\| 1| 冒犯性字串|
\| 2| 字串太長|
\| 3| 未知的錯誤|

## 另請參閱

##### 上層

[JavaScript Object Notation (JSON) 物件參考](https://docs.xbox.com/zh-TW/reference/live/rest/json/atoc-xboxlivews-reference-json.md)

##### 參考

[POST (/system/strings/validate)](https://docs.xbox.com/zh-TW/reference/live/rest/uri/stringserver/uri-systemstringsvalidatepost.md)


## Related topics

- [POST (/system/strings/validate)](https://docs.xbox.com/zh-TW/reference/live/rest/uri/stringserver/uri-systemstringsvalidatepost.md)
- [JavaScript 物件標記法 (JSON) 物件參考](https://docs.xbox.com/zh-TW/reference/live/rest/json/atoc-xboxlivews-reference-json.md)
- [XblStringVerifyStringsResult](https://docs.xbox.com/zh-TW/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringsresult.md)
- [XblStringVerifyStringResult](https://docs.xbox.com/zh-TW/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringresult.md)
- [XblVerifyStringResult](https://docs.xbox.com/zh-TW/reference/live/xsapi-c/string_verify_c/structs/xblverifystringresult.md)
