DisplaySource クラス

定義

ソースの所有権を提供し、所有者がフレームを表示できるようにします。

public ref class DisplaySource sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DisplaySource final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DisplaySource
Public NotInheritable Class DisplaySource
継承
Object Platform::Object IInspectable DisplaySource
属性

Windows の要件

デバイス ファミリ
Windows 10, version 1809 (10.0.17763.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v7.0 で導入)

プロパティ

AdapterId

この DisplaySource に関連付けられているアダプター ID を取得します。

SourceId

このソースのアダプター相対識別子を取得します。

Status

DisplaySource の現在の状態を取得します。

DisplaySource.StatusChanged イベントを使用して、状態がいつ変更されたかを判断できます。

メソッド

GetMetadata(Guid)

ソースから動的メタデータを取得します。

イベント

StatusChanged

DisplaySource.Status プロパティの値が変更されたときに発生するイベント。 DisplaySource の状態に関する知識を使用すると、システム状態の遷移を可視化し、それらの状態の変更を処理する機会を得ることができます。

適用対象