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

# XblStringVerifyStringAsync

> XblStringVerifyStringAsync

Verifies if a string contains acceptable text for use with XBOX Live.

## Syntax

```cpp theme={null}
HRESULT XblStringVerifyStringAsync(  
         XblContextHandle xboxLiveContext,  
         const char* stringToVerify,  
         XAsyncBlock* asyncBlock  
)  
```

### Parameters

*xboxLiveContext*   \_In\_\
Type: [XblContextHandle](https://docs.xbox.com/reference/live/xsapi-c/types_c/handles/xblcontexthandle.md)

XBOX live context for the local user.

*stringToVerify*   \_In\_\
Type: char\*

The string to verify.

*asyncBlock*   \_In\_\
Type: XAsyncBlock\*

The AsyncBlock for this operation.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

Call [XblStringVerifyStringResultSize](https://docs.xbox.com/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringresultsize.md) to retrieve size of buffer needed for result. Call [XblStringVerifyStringResult](https://docs.xbox.com/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringresult.md) to retrieve the size of the results.

## Requirements

**Header:** string\_verify\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[string\_verify\_c](https://docs.xbox.com/reference/live/xsapi-c/string_verify_c/string_verify_c_members.md)


## Related topics

- [string_verify_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/string_verify_c/string_verify_c_members.md)
- [XblStringVerifyStringResult](https://docs.xbox.com/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringresult.md)
- [XblStringVerifyStringResultSize](https://docs.xbox.com/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringresultsize.md)
- [XblStringVerifyStringsAsync](https://docs.xbox.com/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringsasync.md)
- [XblStringVerifyStringsResult](https://docs.xbox.com/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringsresult.md)
