IUserPromptService.ShowDialogAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Zeigt ein modales Dialogfeld an.
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)
Parameter
- content
- IRemoteUserControl
Der Inhalt des Dialogfelds.
- title
- String
Der Titel des Dialogfelds.
- options
- DialogOption
Die Optionen zum Anzeigen des Dialogfelds.
- cancellationToken
- CancellationToken
Ein CancellationToken , um die laufende Anforderung abzubrechen.
Gibt zurück
Die DialogResult , die die vom Benutzer aufgerufene Schaltfläche oder Aktion darstellt.