AppUriHandlerRegistrationManager AppUriHandlerRegistrationManager AppUriHandlerRegistrationManager AppUriHandlerRegistrationManager AppUriHandlerRegistrationManager Class

Definition

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.
Attributes

Windows 10 requirements

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

Examples

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

Remarks

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.

Properties

User User User User User

The user context registrations will occur for.

Methods

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