Share via


ShellExtensibility.ShowDialogAsync Method

Definition

Overloads

ShowDialogAsync(IRemoteUserControl, String, CancellationToken)

Shows a modal dialog.

ShowDialogAsync(IRemoteUserControl, String, DialogOption, CancellationToken)

Shows a modal dialog.

ShowDialogAsync(IRemoteUserControl, CancellationToken)

Shows a modal dialog.

ShowDialogAsync(IRemoteUserControl, DialogOption, CancellationToken)

Shows a modal dialog.

ShowDialogAsync(IRemoteUserControl, String, CancellationToken)

Shows a modal dialog.

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

Parameters

content
IRemoteUserControl

The content of the dialog.

title
String

The title of the dialog.

cancellationToken
CancellationToken

A CancellationToken to cancel the dialog.

Returns

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

Applies to

ShowDialogAsync(IRemoteUserControl, String, DialogOption, CancellationToken)

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);
member this.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 dialog.

Returns

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

Applies to

ShowDialogAsync(IRemoteUserControl, CancellationToken)

Shows a modal dialog.

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

Parameters

content
IRemoteUserControl

The content of the dialog.

cancellationToken
CancellationToken

A CancellationToken to cancel the dialog.

Returns

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

Applies to

ShowDialogAsync(IRemoteUserControl, DialogOption, CancellationToken)

Shows a modal dialog.

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

Parameters

content
IRemoteUserControl

The content of the dialog.

options
DialogOption

The options for displaying the dialog.

cancellationToken
CancellationToken

A CancellationToken to cancel the dialog.

Returns

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

Applies to