AppUriHandlerRegistrationManager.TryGetRegistration(String) AppUriHandlerRegistrationManager.TryGetRegistration(String) AppUriHandlerRegistrationManager.TryGetRegistration(String) AppUriHandlerRegistrationManager.TryGetRegistration(String) 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 : AppUriHandlerRegistration TryGetRegistration(Platform::String name)
AppUriHandlerRegistration TryGetRegistration(winrt::hstring name) const;
public AppUriHandlerRegistration TryGetRegistration(String name)
Public Function TryGetRegistration(name As String) As AppUriHandlerRegistration
var appUriHandlerRegistration = appUriHandlerRegistrationManager.tryGetRegistration(name);

Parameters

name
String String String

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>