Dela via


AppUriHandlerRegistrationManager.GetForUser(User) Method

Definition

Creates an AppUriHandlerRegistrationManager for the calling app for the requested user context.

public:
 static AppUriHandlerRegistrationManager ^ GetForUser(User ^ user);
 static AppUriHandlerRegistrationManager GetForUser(User const& user);
public static AppUriHandlerRegistrationManager GetForUser(User user);
function getForUser(user)
Public Shared Function GetForUser (user As User) As AppUriHandlerRegistrationManager

Parameters

user
User

User context to perform operations for.

Returns

An AppUriHandlerRegistrationManager which can be used to access AppUriHandlerRegistrations.

Remarks

This API will fail if the caller has not set the "SupportedUsers" property in their AppxManifest to "multiple".

Apps which do not support multiple users should instead use AppUriHandlerRegistrationManager.GetDefault.

Applies to

See also