User.CheckUserAgeConsentGroupAsync(UserAgeConsentGroup) メソッド

定義

指定したユーザー年齢同意グループにユーザーが属しているかどうかを示す値を取得します。

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)

パラメーター

consentGroup
UserAgeConsentGroup

ユーザー メンバーシップが照会される年齢の同意グループを示す UserAgeConsentGroup の値。

戻り値

完了時に UserAgeConsentResult を返す非同期操作。

属性

Windows の要件

デバイス ファミリ
Windows 11 (10.0.22000.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v14.0 で導入)

注釈

この API から返される情報を使用すると、アプリを使用して、子供や未成年者に適したエクスペリエンスを設計できます。

この API には 、UserAccountInformation 機能が 必要です。 詳しくは、「アプリ機能の宣言」をご覧ください。

適用対象