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

# XblStringVerifyStringAsync

> 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](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

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](/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringresultsize) to retrieve size of buffer needed for result. Call [XblStringVerifyStringResult](/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringresult) to retrieve the size of the results.

## Requirements

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

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[string\_verify\_c](/reference/live/xsapi-c/string_verify_c/string_verify_c_members)


## Related topics

- [XblStringVerifyStringResult](/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringresult.md)
- [XblStringVerifyStringResultSize](/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringresultsize.md)
- [XblStringVerifyStringsAsync](/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringsasync.md)
- [XblStringVerifyStringsResult](/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringsresult.md)
- [XblStringVerifyStringsResultSize](/reference/live/xsapi-c/string_verify_c/functions/xblstringverifystringsresultsize.md)
