語言

ContentIslandEnvironment 類別

定義

提供一般環境資訊給 ContentIsland。

[WebHostHidden]
public ref class ContentIslandEnvironment
/// [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 ContentIslandEnvironment
[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 ContentIslandEnvironment
Public Class ContentIslandEnvironment
繼承
Object Platform::Object IInspectable ContentIslandEnvironment
屬性

備註

每個 ContentIsland 都與一個獨特的 ContentIslandEnvironment 物件相關聯,該物件不會在多個 ContentIsland 物件間共享。 然而, ContentIslandEnvironment 內的資訊,例如 AppWindowId,在同一頂層視窗中,不同 ContentIsland 物件間的值可能相同。

屬性

名稱 Description
AppWindowId

取得頂級 Win32 HWND 的 ID。

CurrentOrientation

提供一般環境資訊給 ContentIsland。

DisplayId

取得「指標權威」監控 ID。

DisplayScale

取得與此 ContentIsland 相關的應用程式視窗的縮放因子。

NativeOrientation

提供一般環境資訊給 ContentIsland。

事件

名稱 Description
SettingChanged

當這個實例設定改變時會發生。

StateChanged

當此實例的屬性發生變化時。 狀態變化會立即發生,此事件則在非同步發生後。

ThemeChanged

提供一般環境資訊給 ContentIsland。

適用於