Dela via


AppUriHandlerHost Class

Definition

An object representation of the Host field in an AppUriHandler registration. These are used in conjunction with AppUriHandlerRegistration.

public ref class AppUriHandlerHost sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.System.IAppUriHandlerHostFactory, 458752, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(458752, "Windows.Foundation.UniversalApiContract")]
/// [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 AppUriHandlerHost final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.System.IAppUriHandlerHostFactory), 458752, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(458752, "Windows.Foundation.UniversalApiContract")]
[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 AppUriHandlerHost
function AppUriHandlerHost(name)
Public NotInheritable Class AppUriHandlerHost
Inheritance
Object Platform::Object IInspectable AppUriHandlerHost
Attributes

Windows requirements

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

Remarks

This corresponds to the Host field in an AppUriHandler registration:

<uap3:AppUriHandler uap7:Name ="Runtime"> <uap3:Host Name="www.appurihandler.com" /> </uap3:AppUriHandler>

Constructors

AppUriHandlerHost()

Default constructor for AppUriHandlerHost.

AppUriHandlerHost(String)

Constructor for AppUriHandlerHost which sets the name as well.

Properties

IsEnabled

Gets or sets a value specifying if the host is enabled.

Name

A website hostname.

Applies to

See also