DisplaySource Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |