Share via


AppUriHandlerRegistrationManager Class

Definition

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

public ref class AppUriHandlerRegistrationManager sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppUriHandlerRegistrationManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppUriHandlerRegistrationManager
Public NotInheritable Class AppUriHandlerRegistrationManager
Inheritance
Object Platform::Object IInspectable AppUriHandlerRegistrationManager
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

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

PackageFamilyName

Gets the package family name for the app originally specified when creating the AppUriHandlerRegistrationManager object.

User

The user context registrations will occur for.

Methods

GetDefault()

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

GetForPackage(String)

Retrieves an AppUriHandlerRegistrationManager instance for a given package.

GetForPackageForUser(String, User)

Retrieves an AppUriHandlerRegistrationManager instance for a given package and user.

GetForUser(User)

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

TryGetRegistration(String)

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

Applies to

See also