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

# XblMultiplayerSearchHandleGetStringAttributes

> XblMultiplayerSearchHandleGetStringAttributes

Get a pointer to an array of attributes attached with the search handle.

## Syntax

```cpp theme={null}
HRESULT XblMultiplayerSearchHandleGetStringAttributes(  
         XblMultiplayerSearchHandle handle,  
         const XblMultiplayerSessionStringAttribute** attributes,  
         size_t* attributesCount  
)  
```

### Parameters

*handle*   \_In\_\
Type: [XblMultiplayerSearchHandle](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersearchhandle.md)

Handle to the search handle details.

*attributes*   \_Out\_\
Type: [XblMultiplayerSessionStringAttribute\*\*](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayersessionstringattribute.md)

Passes back a pointer to array of attributes. The memory for the pointer will remain valid for the life of the XblMultiplayerSessionHandle object until it is closed.

*attributesCount*   \_Out\_\
Type: size\_t\*

Passes back the count of attributes in the array.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Requirements

**Header:** multiplayer\_c.h

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

## See also

[multiplayer\_c](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members.md)


## Related topics

- [multiplayer_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members.md)
- [XblMultiplayerGetSearchHandlesAsync](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsearchhandlesasync.md)
- [XblMultiplayerSearchHandleGetNumberAttributes](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandlegetnumberattributes.md)
- [XblMultiplayerSearchHandleGetCustomSessionPropertiesJson](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandlegetcustomsessionpropertiesjson.md)
- [XblMultiplayerGetSearchHandlesResult](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsearchhandlesresult.md)
