语言

ContentSiteEnvironment 类

定义

向关联的 ContentIsland 提供有关 ContentSite 环境的信息。

[WebHostHidden]
public ref class ContentSiteEnvironment
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[WebHostHidden]
class ContentSiteEnvironment
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class ContentSiteEnvironment
Public Class ContentSiteEnvironment
继承
Object Platform::Object IInspectable ContentSiteEnvironment
属性

注解

ContentIslandEnvironment 由 ContentSiteEnvironment 中指定的设置配置。

每个 ContentSite 都有一个 ContentSiteEnvironment ,用于管理 ContentIslandEnvironment 设置。 IContentSiteBridge 实现负责决定何时将信息从 ContentSiteEnvironment 传播到 ContentIslandEnvironment。 这使 IContentSiteBridge 能够确定如何将环境表示给 ContentIsland 的策略。

属性

名称 说明
AppWindowId

获取或设置顶级 Win32 HWND 的 ID。

CurrentOrientation

向关联的 ContentIsland 提供有关 ContentSite 环境的信息。

DisplayId

获取或设置“指标颁发机构”监视器 ID。

DisplayScale

向关联的 ContentIsland 提供有关 ContentSite 环境的信息。

NativeOrientation

向关联的 ContentIsland 提供有关 ContentSite 环境的信息。

View

获取与 ContentSiteEnvironment 关联的 ContentSiteEnvironmentView。

方法

名称 说明
NotifySettingChanged(String)

告知 ContentIslandEnvironment 引发 SettingChanged 事件。

NotifyThemeChanged()

向关联的 ContentIsland 提供有关 ContentSite 环境的信息。

适用于