AppUriHandlerRegistration.UpdateHosts Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.