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

# XGameSave Provider QueryContainers method

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

# Microsoft.Xbox.Wrappers.XGameSave.Provider.QueryContainers

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

<a id="syntaxSection" />

## Syntax

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

<a id="parametersSection" />

### Parameters

*prefix*   \_In\_<br />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.

<a id="retvalSection" />

### Return value

Type: ContainerNames

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

<a id="remarksSection" />

## 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](/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_initialize) method before you can call any other method from the `Provider` class.

<a id="requirementsSection" />

## Requirements

**Header:** xgamesavewrappers.hpp

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

<a id="seealsoSection" />

## See also

[Microsoft.Xbox.Wrappers.XGameSave.Provider](/reference/system/Wrappers/classes/provider/xgamesave_wrapper_provider)<br />[XGameSave wrapper members](/reference/system/Wrappers/xgamesave_wrapper_members)


## Related topics

- [XGameSave Provider QueryContainerBlobs method](/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_querycontainerblobs.md)
- [XGameSave Provider Save method reference](/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_save.md)
- [XGameSave Provider Initialize method reference](/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_initialize.md)
- [XGameSave Provider Load method reference](/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_load.md)
- [XGameSave Provider Delete(std::string&) method](/reference/system/Wrappers/classes/provider/methods/xgamesave_wrapper_provider_delete_string.md)
