UserPromptResult Class
The answer of the user to a simple dialog (see BrowsingContextOptions.UserPromptHandler).
public sealed class UserPromptResultProperties
| Name | Description |
|---|---|
| Accepted | Gets whether the user accepted the dialog (OK), rather than dismissed it (Cancel). |
| Dismiss | Gets the result of a dialog that the user dismissed. |
| Text | Gets the text entered in a UserPromptType.Prompt dialog that is accepted, or null for the default value of the dialog. |
Accepted
UserPrompt.csDismiss
UserPrompt.csGets the result of a dialog that the user dismissed.
public static UserPromptResult Dismiss { get; }Property value
Text
UserPrompt.csGets the text entered in a UserPromptType.Prompt dialog that is accepted, or null for the default value of the dialog.
public string? Text { get; }Property value
Methods
| Name | Description |
|---|---|
| Accept(string?) | Returns the result of a dialog that the user accepted. |
Accept(string?)
UserPrompt.csReturns the result of a dialog that the user accepted.
public static UserPromptResult Accept(string? text = null)Parameters
textstring?- The text entered in a
UserPromptType.Promptdialog, or null for its default value.