Share via


IUserPromptService.ShowDialogAsync Method

Definition

Shows a modal dialog.

public System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.Notifications.DialogResult> ShowDialogAsync (Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteUserControl content, string title, Microsoft.VisualStudio.RpcContracts.Notifications.DialogOption options, System.Threading.CancellationToken cancellationToken);
abstract member ShowDialogAsync : Microsoft.VisualStudio.RpcContracts.RemoteUI.IRemoteUserControl * string * Microsoft.VisualStudio.RpcContracts.Notifications.DialogOption * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.RpcContracts.Notifications.DialogResult>
Public Function ShowDialogAsync (content As IRemoteUserControl, title As String, options As DialogOption, cancellationToken As CancellationToken) As Task(Of DialogResult)

Parameters

content
IRemoteUserControl

The content of the dialog.

title
String

The title of the dialog.

options
DialogOption

The options for displaying the dialog.

cancellationToken
CancellationToken

A CancellationToken to cancel the in-progress request.

Returns

The DialogResult that represents the button or action invoked by the user.

Applies to