Share via


DisplaySource Class

Definition

Provides ownership of a source, allowing the owner to present frames.

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
Inheritance
Object Platform::Object IInspectable DisplaySource
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Properties

AdapterId

Gets the adapter ID associated with this DisplaySource.

SourceId

Gets an adapter-relative identifier for this source.

Status

Get the current status for the DisplaySource.

You can use the DisplaySource.StatusChanged event to determine when the status has changed.

Methods

GetMetadata(Guid)

Retrieves dynamic metadata from the source.

Events

StatusChanged

An event that's raised when the value of the DisplaySource.Status property changes. Knowledge of DisplaySource status gives you visibility into system state transitions, and gives you the opportunity to handle those state changes.

Applies to