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

# XStoreQueryAssociatedProductsResult

> XStoreQueryAssociatedProductsResult

# XStoreQueryAssociatedProductsResult

Obtiene los resultados de una llamada a [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync).

## Sintaxis

```cpp theme={null}
HRESULT XStoreQueryAssociatedProductsResult(  
         XAsyncBlock* async,  
         XStoreProductQueryHandle* productQueryHandle  
)  
```

### Parámetros

*async*   \_Inout\_\
Tipo: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

El `XAsyncBlock` que se pasa a [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync).
Use el [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) para comprobar el estado de la llamada y obtener los resultados.
Para obtener más información, consulte [XAsyncBlock](/reference/system/xasync/structs/xasyncblock).

*productQueryHandle*   \_Out\_\
Tipo: XStoreProductQueryHandle\*

Al devolverse, contiene un XStoreProductQueryHandle que representa la consulta.
Pase el XStoreProductQueryHandle devuelto a [XStoreEnumerateProductsQuery](/reference/system/xstore/functions/xstoreenumerateproductsquery) para enumerar los productos que devolvió la consulta.

### Valor devuelto

Tipo: HRESULT

S\_OK si se realiza correctamente; de lo contrario, devuelve un código de error.

## Comentarios

Esta función de resultado recupera los resultados de la ejecución de [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync). Si la ejecución se realizó correctamente, devuelve una lista de productos asociados.
Llame a esta función después de [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync), normalmente en el contexto de una función de devolución de llamada.

Para ver un ejemplo de uso, consulte [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync).

## Requisitos

**Encabezado:** XStore.h (incluido en XGameRuntime.h)

**Biblioteca:** xgameruntime.lib

**Plataformas compatibles:** Windows, consolas de la familia XBOX One y consolas XBOX Series

## Documentación conceptual

* [Concesión a los jugadores de acceso a contenido complementario](/publishing/xstore-commerce/xstore-granting-access)
* [Operaciones básicas de la tienda](/publishing/xstore-commerce/xstore-basic-operations)

## Consulte también

[XStore](/reference/system/xstore/xstore_members)
[XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync)\
[XStoreQueryEntitledProductsAsync](/reference/system/xstore/functions/xstorequeryentitledproductsasync)\
[XStoreQueryProductsAsync](/reference/system/xstore/functions/xstorequeryproductsasync)\
[XStoreQueryProductForCurrentGameAsync](/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync)\
[XStoreQueryProductForPackageAsync](/reference/system/xstore/functions/xstorequeryproductforpackageasync)\
[Operaciones básicas de la tienda](/publishing/xstore-commerce/xstore-basic-operations)\
[Concesión a los jugadores de acceso a contenido complementario](/publishing/xstore-commerce/xstore-granting-access)


## Related topics

- [Operaciones básicas de la tienda](/es/publishing/xstore-commerce/xstore-basic-operations.md)
- [XStore](/es/reference/system/xstore/xstore_members.md)
- [Contenedores de API de C# de Unity para el GDK](/es/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreQueryAssociatedProductsForStoreIdResult](/es/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidresult.md)
- [XStoreQueryProductsResult](/es/reference/system/xstore/functions/xstorequeryproductsresult.md)
