Package.GetContentGroupAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
|