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

# QueryContainers

> Reference for the XGameSave wrapper Provider.QueryContainers method, which returns the names of save containers whose names match a supplied prefix.

Returns a vector of container names that match the supplied name prefix.

## Syntax

```cpp theme={null}
ContainerNames QueryContainers(const std::string& prefix);
```

### Parameters

*prefix*   \_In\_\
Type: std::string

The prefix of the name of the containers to search for. If you specify an empty string for the prefix, then this method returns all of the container names.

### Return value

Type: ContainerNames

Returns a vector of container names that match the search conditions.

## Remarks

If you specify an empty string for the prefix, then this method returns all of the container names.

You can search for a container by specifying its name, instead of a prefix of it.

You must call the [Initialize](https://docs.xbox.com/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_initialize.md) method before you can call any other method from the `Provider` class.

## Requirements

**Header:** xgamesavewrappers.hpp

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[Microsoft.Xbox.Wrappers.XGameSave.Provider](https://docs.xbox.com/reference/system/Wrappers/classes/provider/xgamesave_wrapper_provider.md)\
[XGameSave wrapper members](https://docs.xbox.com/reference/system/Wrappers/xgamesave_wrapper_members.md)


## Related topics

- [QueryContainerBlobs](https://docs.xbox.com/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_querycontainerblobs.md)
- [Port Steam Cloud storage to the XBOX GDK](https://docs.xbox.com/build/steam-porting-guide/features/steam-cloud.md)
- [Microsoft.Xbox.Wrappers.XGameSave.Provider reference](https://docs.xbox.com/reference/system/Wrappers/classes/provider/xgamesave_wrapper_provider.md)
- [Query](https://docs.xbox.com/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_query.md)
- [BlobInfoSet](https://docs.xbox.com/reference/system/Wrappers/vectors/blobinfoset.md)
