Edit

Share via


PrivacyService.CheckPermissionWithTargetUserAsync(String, String) Method

Definition

Check a single permission with a single target user.

public Windows.Foundation.IAsyncOperation<Microsoft.Xbox.Services.Privacy.PermissionCheckResult> CheckPermissionWithTargetUserAsync (string permissionId, string targetXboxUserId);
abstract member CheckPermissionWithTargetUserAsync : string * string -> Windows.Foundation.IAsyncOperation<Microsoft.Xbox.Services.Privacy.PermissionCheckResult>
override this.CheckPermissionWithTargetUserAsync : string * string -> Windows.Foundation.IAsyncOperation<Microsoft.Xbox.Services.Privacy.PermissionCheckResult>
Public Function CheckPermissionWithTargetUserAsync (permissionId As String, targetXboxUserId As String) As IAsyncOperation(Of PermissionCheckResult)

Parameters

permissionId
String

The ID of the permission to check. See Microsoft::Xbox::Services::Privacy::PermissionIdConstants for the latest options.

targetXboxUserId
String

The target user's xbox Live ID for validation

Returns

Windows.Foundation.IAsyncOperation<PermissionCheckResult>

The permission check result against a single user.

Implements

Microsoft.Xbox.Services.Privacy.__IPrivacyServicePublicNonVirtuals.CheckPermissionWithTargetUserAsync(System.String,System.String)

Remarks

Returns an IAsyncOperation<TResult> object that represents the state of the asynchronous operation.

Calls V1 GET /users/{requestorId}/permission/validate

Applies to