Jaa


AppUriHandlerRegistrationManager.GetForPackageForUser(String, User) Method

Definition

Retrieves an AppUriHandlerRegistrationManager instance for a given package and user.

public:
 static AppUriHandlerRegistrationManager ^ GetForPackageForUser(Platform::String ^ packageFamilyName, User ^ user);
 static AppUriHandlerRegistrationManager GetForPackageForUser(winrt::hstring const& packageFamilyName, User const& user);
public static AppUriHandlerRegistrationManager GetForPackageForUser(string packageFamilyName, User user);
function getForPackageForUser(packageFamilyName, user)
Public Shared Function GetForPackageForUser (packageFamilyName As String, user As User) As AppUriHandlerRegistrationManager

Parameters

packageFamilyName
String

Platform::String

winrt::hstring

The package family name for which the AppUriHandlerRegistrationManager is retrieved. The specified name can be for the calling app itself or any hosted app that is hosted by the calling app.

user
User

The user for which the AppUriHandlerRegistrationManager is retrieved.

Returns

An AppUriHandlerRegistrationManager instance.

Windows requirements

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

Remarks

With the returned AppUriHandlerRegistrationManager, the caller can then call AppUriHandlerRegistrationManager.TryGetRegistration method to get an AppUriHandlerRegistration object.

Applies to