Package.GetContentGroupsAsync Method

Definition

Provides information about all of the package content groups in the app and their state, name, whether they are required, and so on.

public:
 virtual IAsyncOperation<IVector<PackageContentGroup ^> ^> ^ GetContentGroupsAsync() = GetContentGroupsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVector<PackageContentGroup>> GetContentGroupsAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IList<PackageContentGroup>> GetContentGroupsAsync();
function getContentGroupsAsync()
Public Function GetContentGroupsAsync () As IAsyncOperation(Of IList(Of PackageContentGroup))

Returns

A list of package content group objects.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

The returned collection may be empty if the package does not contain any content groups.

Applies to