User.CheckUserAgeConsentGroupAsync(UserAgeConsentGroup) Method

Definition

Retrieves a value indicating whether the user belongs to the specified user age consent group.

public:
 virtual IAsyncOperation<UserAgeConsentResult> ^ CheckUserAgeConsentGroupAsync(UserAgeConsentGroup consentGroup) = CheckUserAgeConsentGroupAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<UserAgeConsentResult> CheckUserAgeConsentGroupAsync(UserAgeConsentGroup const& consentGroup);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<UserAgeConsentResult> CheckUserAgeConsentGroupAsync(UserAgeConsentGroup consentGroup);
function checkUserAgeConsentGroupAsync(consentGroup)
Public Function CheckUserAgeConsentGroupAsync (consentGroup As UserAgeConsentGroup) As IAsyncOperation(Of UserAgeConsentResult)

Parameters

consentGroup
UserAgeConsentGroup

A value from the UserAgeConsentGroup indicating the age consent group for which user membership is queried.

Returns

IAsyncOperation<UserAgeConsentResult>

An asynchronous operation that returns a UserAgeConsentResult on completion.

Attributes

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Remarks

The information returned from this API allows you to design a more suitable experience for children and minors using your app.

This API requires the UserAccountInformation capability. For more information, see App capability declarations.

Applies to