ContentSiteEnvironment 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
向相關的 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
- 繼承
- 屬性
備註
ContentIslandEnvironment 是由 ContentSiteEnvironment 中指定的設定來配置的。
每個 ContentSite 都有一個 ContentSiteEnvironment 來管理 ContentIslandEnvironment 的設定。 IContentSiteBridge 實作負責決定何時將資訊從 ContentSiteEnvironment 傳播到 ContentIslandEnvironment。 這使得 IContentSiteBridge 能夠決定環境如何被 ContentIsland 呈現的政策。
屬性
| 名稱 | Description |
|---|---|
| AppWindowId |
取得或設定頂層 Win32 硬體的 ID。 |
| CurrentOrientation |
向相關的 ContentIsland 提供 ContentSite 環境的資訊。 |
| DisplayId |
取得或設定「指標權威」監控 ID。 |
| DisplayScale |
向相關的 ContentIsland 提供 ContentSite 環境的資訊。 |
| NativeOrientation |
向相關的 ContentIsland 提供 ContentSite 環境的資訊。 |
| View |
方法
| 名稱 | Description |
|---|---|
| NotifySettingChanged(String) |
告訴 ContentIslandEnvironment 要發起一個 SettingChanged 事件。 |
| NotifyThemeChanged() |
向相關的 ContentIsland 提供 ContentSite 環境的資訊。 |