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

# XblMultiplayerSearchHandleGetNumberAttributes

> XblMultiplayerSearchHandleGetNumberAttributes

# XblMultiplayerSearchHandleGetNumberAttributes

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

## Syntax

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

### Parameters

*handle*   \_In\_\
Type: [XblMultiplayerSearchHandle](/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersearchhandle)

Handle to the search handle details.

*attributes*   \_Out\_\
Type: [XblMultiplayerSessionNumberAttribute\*\*](/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayersessionnumberattribute)

Passes back a pointer to array of attributes. The memory for the returned 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 attributes array.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Requirements

**Header:** multiplayer\_c.h

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

## See also

[multiplayer\_c](/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)


## Related topics

- [XblMultiplayerSearchHandleGetStringAttributes](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandlegetstringattributes.md)
- [XblMultiplayerGetSearchHandlesAsync](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsearchhandlesasync.md)
- [XblMultiplayerGetSearchHandlesResultCount](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsearchhandlesresultcount.md)
- [XblMultiplayerSearchHandleGetMemberCounts](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandlegetmembercounts.md)
- [XblMultiplayerGetSearchHandlesResult](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsearchhandlesresult.md)
