AppUriHandlerRegistrationManager AppUriHandlerRegistrationManager AppUriHandlerRegistrationManager AppUriHandlerRegistrationManager AppUriHandlerRegistrationManager Class


Retrieves AppUriHandlerRegistrations for the calling package. This can be used to access AppUriHandler registrations.

public : sealed class AppUriHandlerRegistrationManager
struct winrt::Windows::System::AppUriHandlerRegistrationManager
public sealed class AppUriHandlerRegistrationManager
Public NotInheritable Class AppUriHandlerRegistrationManager
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)


    // Get the default AppUriHandlerRegistrationManager and query it for our registration.
    AppUriHandlerRegistrationManager manager = AppUriHandlerRegistrationManager.GetDefault();
    AppUriHandlerRegistration registration =  manager.TryGetRegistration("MyRuntimeRegistrationName");


In order to create this object to manage host registrations in addition to those declared in the AppxManifest, a windows.AppUriHandler contract registration must exist in the manifest with a name field provided.


User User User User User

The user context registrations will occur for.


GetDefault() GetDefault() GetDefault() GetDefault() GetDefault()

Creates an AppUriHandlerRegistrationManager for the calling app for the current user.

GetForUser(User) GetForUser(User) GetForUser(User) GetForUser(User) GetForUser(User)

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

TryGetRegistration(String) TryGetRegistration(String) TryGetRegistration(String) TryGetRegistration(String) TryGetRegistration(String)

Attempts to retrieve a registration object for the windows.AppUriHandler extension present in the caller's AppxManifest with the given name.

See also