Class MessageBoxResult
Which button closed a MsgBox, or that nobody was asked.
public sealed record MessageBoxResult : IEquatable<MessageBoxResult>
- Inheritance
-
MessageBoxResult
- Implements
- Inherited Members
Properties
Declined
Whether the one asked shows dialogs, and declined to answer this one: nobody else will, and the program's run fails (VBR50001). The language server
says so of a client that said it shows dialogs and did not handle one; the host shows no dialog of its own then.
public bool Declined { get; init; }
Property Value
Failure
Why the answer cannot be used, when it cannot: a Result that is none of the dialog's buttons. The program's run fails with it
(VBR50002), naming the client, the buttons and the answer. null for an answer that can be used.
public string? Failure { get; init; }
Property Value
Handled
Whether someone was asked. false when the one asked has nobody to ask - a client that did not say it shows dialogs - and the host shows the dialog the platform it runs on has.
public bool Handled { get; init; }
Property Value
NotHandled
The answer of one who has nobody to ask.
public static MessageBoxResult NotHandled { get; }
Property Value
Result
The VbMsgBoxResult of the button that closed the dialog.
public int Result { get; init; }