Share via


Microsoft.Xbox.Wrappers.XGameSave.Provider.QueryContainers

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

Syntax

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 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
XGameSave wrapper members
Game saves simplified wrapper