AppUriHandlerHost 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
AppUriHandler 注册中 Host 字段的对象表示形式。 它们与 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
- 继承
- 属性
Windows 要求
设备系列 |
Windows 10, version 1809 (在 10.0.17763.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)
|
注解
这对应于 AppUriHandler 注册中的“主机”字段:
<uap3:AppUriHandler uap7:Name =“Runtime”><uap3:Host Name=“www.appurihandler.com” /></uap3:AppUriHandler>
构造函数
AppUriHandlerHost() |
AppUriHandlerHost 的默认构造函数。 |
AppUriHandlerHost(String) |
AppUriHandlerHost 的构造函数,用于设置名称。 |
属性
IsEnabled |
获取或设置一个值,该值指定是否启用主机。 |
Name |
网站主机名。 |