-api-id | -api-type | ms.custom |
---|---|---|
T:Windows.System.AppUriHandlerRegistrationManager |
winrt class |
RS5 |
Retrieves AppUriHandlerRegistrations for the calling package. This can be used to access AppUriHandler registrations.
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.
// Get the default AppUriHandlerRegistrationManager and query it for our registration.
AppUriHandlerRegistrationManager manager = AppUriHandlerRegistrationManager.GetDefault();
AppUriHandlerRegistration registration = manager.TryGetRegistration("MyRuntimeRegistrationName");