共用方式為


AppUriHandlerHost 類別

定義

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
繼承
Object Platform::Object IInspectable 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

網站主機名稱。

適用於

另請參閱