IUserPromptService.ShowDialogAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.