public sealed record DesktopPresentationAvailability : IEquatable<DesktopPresentationAvailability> Describes whether one concrete presentation host can be used by the current process.
Constructors
DesktopPresentationAvailability
public DesktopPresentationAvailability(BrowserKind Browser, bool IsAvailable, string? ExecutablePath, DesktopWindowCapabilities Capabilities, DesktopDiagnostic? Diagnostic) Describes whether one concrete presentation host can be used by the current process.
Properties
Diagnostic
public DesktopDiagnostic? Diagnostic { get; init; } Gets the first missing prerequisite of an unavailable presentation, or null.
Remarks
Always the first entry of DesktopPresentationAvailability.Diagnostics. Setting it, including through a with expression, replaces DesktopPresentationAvailability.Diagnostics with this diagnostic alone, or with none.
Diagnostics
public IReadOnlyList<DesktopDiagnostic> Diagnostics { get; init; } Gets every missing prerequisite of an unavailable presentation, not only the first.
Remarks
For example, a GTK4 selection without its provider reports the provider and each missing native library. DesktopPresentationAvailability.Diagnostic is the first entry; setting this list after it replaces it.
ExecutablePath
public string? ExecutablePath { get; init; } No documentation.
IsAvailable
public bool IsAvailable { get; init; } No documentation.
Methods
Equals
public bool Equals(DesktopPresentationAvailability? other) Compares every member, and the diagnostics by value and order.