AppUriHandlerRegistrationManager.GetForPackage(String) Method

Definition

Retrieves an AppUriHandlerRegistrationManager instance for a given package.

public:
 static AppUriHandlerRegistrationManager ^ GetForPackage(Platform::String ^ packageFamilyName);
 static AppUriHandlerRegistrationManager GetForPackage(winrt::hstring const& packageFamilyName);
public static AppUriHandlerRegistrationManager GetForPackage(string packageFamilyName);
function getForPackage(packageFamilyName)
Public Shared Function GetForPackage (packageFamilyName As String) 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.

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