Package.GetContentGroupsAsync Package.GetContentGroupsAsync Package.GetContentGroupsAsync Package.GetContentGroupsAsync 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 : IAsyncOperation<IVector<PackageContentGroup>> GetContentGroupsAsync()
IAsyncOperation<IVector<PackageContentGroup>> GetContentGroupsAsync() const;
public IAsyncOperation<IList<PackageContentGroup>> GetContentGroupsAsync()
Public Function GetContentGroupsAsync() As IAsyncOperation<IList<PackageContentGroup>>(Of IVector)
Windows.ApplicationModel.Package.getContentGroupsAsync().done( /* Your success and error handlers */ );

Returns

IAsyncOperation<IList<PackageContentGroup>> IAsyncOperation<IList<PackageContentGroup>> IAsyncOperation<IList<PackageContentGroup>>

A list of package content group objects.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

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