---
UID: NF:appxpackaging.IAppxSourceContentGroupMapReader.GetAutomaticGroups
title: IAppxSourceContentGroupMapReader::GetAutomaticGroups (appxpackaging.h)
description: Gets the automatic content group(s) from the source content group map.
old-location: appxpkg\iappxsourcecontentgroupmapreader_getautomaticgroups.htm
tech.root: appxpkg
ms.assetid: DA6D0BEB-75ED-49B8-82A8-0B7C53E5C3C9
ms.date: 12/05/2018
ms.keywords: GetAutomaticGroups, GetAutomaticGroups method [App packaging and management], GetAutomaticGroups method [App packaging and management],IAppxSourceContentGroupMapReader interface, IAppxSourceContentGroupMapReader interface [App packaging and management],GetAutomaticGroups method, IAppxSourceContentGroupMapReader.GetAutomaticGroups, IAppxSourceContentGroupMapReader::GetAutomaticGroups, appxpackaging/IAppxSourceContentGroupMapReader::GetAutomaticGroups, appxpkg.iappxsourcecontentgroupmapreader_getautomaticgroups
f1_keywords:
- appxpackaging/IAppxSourceContentGroupMapReader.GetAutomaticGroups
dev_langs:
- c++
req.header: appxpackaging.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: Windows 10 [desktop apps only]
req.target-min-winversvr: Windows Server 2016 [desktop apps only]
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: AppxPackaging.idl
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- AppxPackaging.h
api_name:
- IAppxSourceContentGroupMapReader.GetAutomaticGroups
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IAppxSourceContentGroupMapReader::GetAutomaticGroups


## -description


Gets the automatic content group(s) from the source content group map.


## -parameters




### -param automaticGroupsEnumerator [out, retval]

An enumerator for the automatic content group(s).


## -returns



If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/appxpackaging/nn-appxpackaging-iappxsourcecontentgroupmapreader">IAppxSourceContentGroupMapReader</a>
 

 

