TaskDialog.ShowDialogAsync Méthode

Définition

Surcharges

Nom Description
ShowDialogAsync(TaskDialogPage, TaskDialogStartupLocation)

Affiche la boîte de dialogue de tâche avec le propriétaire spécifié de manière asynchrone.

ShowDialogAsync(IntPtr, TaskDialogPage, TaskDialogStartupLocation)

Affiche la boîte de dialogue de tâche avec le propriétaire spécifié de manière asynchrone.

ShowDialogAsync(IWin32Window, TaskDialogPage, TaskDialogStartupLocation)

Affiche la boîte de dialogue de tâche avec le propriétaire spécifié de manière asynchrone.

ShowDialogAsync(TaskDialogPage, TaskDialogStartupLocation)

Source:
TaskDialog.cs
Source:
TaskDialog.cs
Source:
TaskDialog.cs

Affiche la boîte de dialogue de tâche avec le propriétaire spécifié de manière asynchrone.

public static System.Threading.Tasks.Task<System.Windows.Forms.TaskDialogButton> ShowDialogAsync(System.Windows.Forms.TaskDialogPage page, System.Windows.Forms.TaskDialogStartupLocation startupLocation = System.Windows.Forms.TaskDialogStartupLocation.CenterScreen);
[System.Diagnostics.CodeAnalysis.Experimental("WFO5002", UrlFormat="https://aka.ms/winforms-warnings/{0}")]
public static System.Threading.Tasks.Task<System.Windows.Forms.TaskDialogButton> ShowDialogAsync(System.Windows.Forms.TaskDialogPage page, System.Windows.Forms.TaskDialogStartupLocation startupLocation = System.Windows.Forms.TaskDialogStartupLocation.CenterScreen);
static member ShowDialogAsync : System.Windows.Forms.TaskDialogPage * System.Windows.Forms.TaskDialogStartupLocation -> System.Threading.Tasks.Task<System.Windows.Forms.TaskDialogButton>
[<System.Diagnostics.CodeAnalysis.Experimental("WFO5002", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
static member ShowDialogAsync : System.Windows.Forms.TaskDialogPage * System.Windows.Forms.TaskDialogStartupLocation -> System.Threading.Tasks.Task<System.Windows.Forms.TaskDialogButton>
Public Shared Function ShowDialogAsync (page As TaskDialogPage, Optional startupLocation As TaskDialogStartupLocation = System.Windows.Forms.TaskDialogStartupLocation.CenterScreen) As Task(Of TaskDialogButton)

Paramètres

page
TaskDialogPage

Instance de page qui contient le contenu de cette boîte de dialogue de tâche.

startupLocation
TaskDialogStartupLocation

Obtient ou définit la position de la boîte de dialogue de tâche lorsqu’elle est affichée.

Retours

Qui TaskDialogButton a été cliqué par l’utilisateur pour fermer la boîte de dialogue.

Attributs

Exceptions

page a la valeur null.

La configuration spécifiée page contient une configuration non valide.

Remarques

L’affichage de la boîte de dialogue lie les page contrôles jusqu’à ce que cette méthode retourne ou que la boîte de dialogue soit accédée à une autre page.

S’applique à

ShowDialogAsync(IntPtr, TaskDialogPage, TaskDialogStartupLocation)

Source:
TaskDialog.cs
Source:
TaskDialog.cs
Source:
TaskDialog.cs

Affiche la boîte de dialogue de tâche avec le propriétaire spécifié de manière asynchrone.

public static System.Threading.Tasks.Task<System.Windows.Forms.TaskDialogButton> ShowDialogAsync(IntPtr hwndOwner, System.Windows.Forms.TaskDialogPage page, System.Windows.Forms.TaskDialogStartupLocation startupLocation = System.Windows.Forms.TaskDialogStartupLocation.CenterOwner);
[System.Diagnostics.CodeAnalysis.Experimental("WFO5002", UrlFormat="https://aka.ms/winforms-warnings/{0}")]
public static System.Threading.Tasks.Task<System.Windows.Forms.TaskDialogButton> ShowDialogAsync(IntPtr hwndOwner, System.Windows.Forms.TaskDialogPage page, System.Windows.Forms.TaskDialogStartupLocation startupLocation = System.Windows.Forms.TaskDialogStartupLocation.CenterOwner);
static member ShowDialogAsync : nativeint * System.Windows.Forms.TaskDialogPage * System.Windows.Forms.TaskDialogStartupLocation -> System.Threading.Tasks.Task<System.Windows.Forms.TaskDialogButton>
[<System.Diagnostics.CodeAnalysis.Experimental("WFO5002", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
static member ShowDialogAsync : nativeint * System.Windows.Forms.TaskDialogPage * System.Windows.Forms.TaskDialogStartupLocation -> System.Threading.Tasks.Task<System.Windows.Forms.TaskDialogButton>
Public Shared Function ShowDialogAsync (hwndOwner As IntPtr, page As TaskDialogPage, Optional startupLocation As TaskDialogStartupLocation = System.Windows.Forms.TaskDialogStartupLocation.CenterOwner) As Task(Of TaskDialogButton)

Paramètres

hwndOwner
IntPtr

nativeint

Handle de la fenêtre propriétaire, ou Zero pour afficher une boîte de dialogue sans mode.

page
TaskDialogPage

Instance de page qui contient le contenu de cette boîte de dialogue de tâche.

startupLocation
TaskDialogStartupLocation

Position de la boîte de dialogue de tâche lorsqu’elle est affichée.

Retours

Qui TaskDialogButton a été cliqué par l’utilisateur pour fermer la boîte de dialogue.

Attributs

Exceptions

page a la valeur null.

La configuration spécifiée page contient une configuration non valide.

Remarques

L’affichage de la boîte de dialogue lie les page contrôles jusqu’à ce que cette méthode retourne ou que la boîte de dialogue soit accédée à une autre page.

S’applique à

ShowDialogAsync(IWin32Window, TaskDialogPage, TaskDialogStartupLocation)

Source:
TaskDialog.cs
Source:
TaskDialog.cs
Source:
TaskDialog.cs

Affiche la boîte de dialogue de tâche avec le propriétaire spécifié de manière asynchrone.

public static System.Threading.Tasks.Task<System.Windows.Forms.TaskDialogButton> ShowDialogAsync(System.Windows.Forms.IWin32Window owner, System.Windows.Forms.TaskDialogPage page, System.Windows.Forms.TaskDialogStartupLocation startupLocation = System.Windows.Forms.TaskDialogStartupLocation.CenterOwner);
[System.Diagnostics.CodeAnalysis.Experimental("WFO5002", UrlFormat="https://aka.ms/winforms-warnings/{0}")]
public static System.Threading.Tasks.Task<System.Windows.Forms.TaskDialogButton> ShowDialogAsync(System.Windows.Forms.IWin32Window owner, System.Windows.Forms.TaskDialogPage page, System.Windows.Forms.TaskDialogStartupLocation startupLocation = System.Windows.Forms.TaskDialogStartupLocation.CenterOwner);
static member ShowDialogAsync : System.Windows.Forms.IWin32Window * System.Windows.Forms.TaskDialogPage * System.Windows.Forms.TaskDialogStartupLocation -> System.Threading.Tasks.Task<System.Windows.Forms.TaskDialogButton>
[<System.Diagnostics.CodeAnalysis.Experimental("WFO5002", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
static member ShowDialogAsync : System.Windows.Forms.IWin32Window * System.Windows.Forms.TaskDialogPage * System.Windows.Forms.TaskDialogStartupLocation -> System.Threading.Tasks.Task<System.Windows.Forms.TaskDialogButton>
Public Shared Function ShowDialogAsync (owner As IWin32Window, page As TaskDialogPage, Optional startupLocation As TaskDialogStartupLocation = System.Windows.Forms.TaskDialogStartupLocation.CenterOwner) As Task(Of TaskDialogButton)

Paramètres

owner
IWin32Window

Fenêtre propriétaire.

page
TaskDialogPage

Instance de page qui contient le contenu de cette boîte de dialogue de tâche.

startupLocation
TaskDialogStartupLocation

Position de la boîte de dialogue de tâche lorsqu’elle est affichée.

Retours

Qui TaskDialogButton a été cliqué par l’utilisateur pour fermer la boîte de dialogue.

Attributs

Exceptions

page a la valeur null.

La configuration spécifiée page contient une configuration non valide.

Remarques

L’affichage de la boîte de dialogue lie les page contrôles jusqu’à ce que cette méthode retourne ou que la boîte de dialogue soit accédée à une autre page.

S’applique à