Package.GetContentGroupAsync(String) Package.GetContentGroupAsync(String) Package.GetContentGroupAsync(String) Package.GetContentGroupAsync(String) Package.GetContentGroupAsync(String) Method

Definition

Provides information about the package content group such as its state, name, whether it is required, and so on.

public : IAsyncOperation<PackageContentGroup> GetContentGroupAsync(Platform::String name)
IAsyncOperation<PackageContentGroup> GetContentGroupAsync(winrt::hstring name) const;
public IAsyncOperation<PackageContentGroup> GetContentGroupAsync(String name)
Public Function GetContentGroupAsync(name As String) As IAsyncOperation(Of PackageContentGroup)
Windows.ApplicationModel.Package.getContentGroupAsync(name).done( /* Your success and error handlers */ );

Parameters

name
String String String

The name of the content group to get.

Returns

A PackageContentGroup that contains information such as whether the content group is required, its state, the package associated with the content group, and so on. Returns Null if the named content group is not part of this package.

Additional features and requirements

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