UserPromptResult Class

The answer of the user to a simple dialog (see BrowsingContextOptions.UserPromptHandler).

public sealed class UserPromptResult

Properties

NameDescription
AcceptedGets whether the user accepted the dialog (OK), rather than dismissed it (Cancel).
DismissGets the result of a dialog that the user dismissed.
TextGets the text entered in a UserPromptType.Prompt dialog that is accepted, or null for the default value of the dialog.

Gets whether the user accepted the dialog (OK), rather than dismissed it (Cancel).

public bool Accepted { get; }

Property value

bool

Gets the result of a dialog that the user dismissed.

public static UserPromptResult Dismiss { get; }

Property value

UserPromptResult

Gets 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

string?

Methods

NameDescription
Accept(string?)Returns the result of a dialog that the user accepted.

Accept(string?)

UserPrompt.cs

Returns the result of a dialog that the user accepted.

public static UserPromptResult Accept(string? text = null)

Parameters

text string?
The text entered in a UserPromptType.Prompt dialog, or null for its default value.

Returns

UserPromptResult