Share via


AppUriHandlerRegistrationManager.TryGetRegistration(String) Method

Definition

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

public:
 virtual AppUriHandlerRegistration ^ TryGetRegistration(Platform::String ^ name) = TryGetRegistration;
AppUriHandlerRegistration TryGetRegistration(winrt::hstring const& name);
public AppUriHandlerRegistration TryGetRegistration(string name);
function tryGetRegistration(name)
Public Function TryGetRegistration (name As String) As AppUriHandlerRegistration

Parameters

name
String

Platform::String

winrt::hstring

Name corresponding to an entry in the caller's AppxManfiest.

Returns

AppUriHandlerRegistration object representing the AppxManifest extension registration. This can be used to update dynamic registrations.

Null if there is no corresponding entry in the caller's AppxManifest.

Remarks

The registration retrieved by this API represents a "windows.appUriHandler" extension like the example below. <uap3:Extension Category="windows.appUriHandler"> <uap3:AppUriHandler uap7:Name ="Runtime"> <uap3:Host Name="www.appurihandler.com" /> </uap3:AppUriHandler>

Applies to