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

# VerifyStringResult (JSON)

> VerifyStringResult (JSON)

# VerifyStringResult (JSON)

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

<a id="ID4ER" />

## VerifyStringResult

VerifyStringResult 物件具有下列規格。

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

<a id="ID4EXB" />

## 範例 JSON 語法

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

```

#### 常見的 HResult 值

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

<a id="ID4ELD" />

## 另請參閱

<a id="ID4END" />

##### 上層

[JavaScript Object Notation (JSON) 物件參考](/zh-TW/reference/live/rest/json/atoc-xboxlivews-reference-json)

<a id="ID4EXD" />

##### 參考

[POST (/system/strings/validate)](/zh-TW/reference/live/rest/uri/stringserver/uri-systemstringsvalidatepost)


## Related topics

- [XblStringVerifyStringsResult](/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringsresult.md)
- [XblStringVerifyStringResult](/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringresult.md)
