Share via


AppUriHandlerRegistration.UpdateHosts Method

Definition

Updates all the app URI registrations specified in the collection.

public:
 virtual void UpdateHosts(IIterable<AppUriHandlerHost ^> ^ hosts) = UpdateHosts;
void UpdateHosts(IIterable<AppUriHandlerHost> const& hosts);
public void UpdateHosts(IEnumerable<AppUriHandlerHost> hosts);
function updateHosts(hosts)
Public Sub UpdateHosts (hosts As IEnumerable(Of AppUriHandlerHost))

Parameters

hosts

IIterable<AppUriHandlerHost>

IEnumerable<AppUriHandlerHost>

The collection of AppUriHandlerHost objects to update.

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Remarks

Each registration is represented by an AppUriHandlerHost object. For each object, the caller can set the IsEnabled property to enable or disable that registration. The list of registrations can either be the full list for that app or a subset. It cannot include new registrations that are not already in the list. Any existing registrations that are not specified in the list remain unchanged.

This method requires the Microsoft.delegatedWebFeatures capability.

Applies to