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:
 virtual IAsyncOperation<PackageContentGroup ^> ^ GetContentGroupAsync(Platform::String ^ name) = GetContentGroupAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<PackageContentGroup> GetContentGroupAsync(winrt::hstring const& name);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<PackageContentGroup> GetContentGroupAsync(string name);
function getContentGroupAsync(name)
Public Function GetContentGroupAsync (name As String) As IAsyncOperation(Of PackageContentGroup)

Parameters

name
String

Platform::String

winrt::hstring

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.

Attributes

Windows requirements

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

Applies to