TaskDialog.ShowDialogAsync Methode

Definitie

Overloads

Name Description
ShowDialogAsync(TaskDialogPage, TaskDialogStartupLocation)

Toont het taakdialoogvenster met de opgegeven eigenaar asynchroon.

ShowDialogAsync(IntPtr, TaskDialogPage, TaskDialogStartupLocation)

Toont het taakdialoogvenster met de opgegeven eigenaar asynchroon.

ShowDialogAsync(IWin32Window, TaskDialogPage, TaskDialogStartupLocation)

Toont het taakdialoogvenster met de opgegeven eigenaar asynchroon.

ShowDialogAsync(TaskDialogPage, TaskDialogStartupLocation)

Bron:
TaskDialog.cs
Bron:
TaskDialog.cs
Bron:
TaskDialog.cs

Toont het taakdialoogvenster met de opgegeven eigenaar asynchroon.

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)

Parameters

page
TaskDialogPage

Het pagina-exemplaar met de inhoud die in dit taakdialoogvenster wordt weergegeven.

startupLocation
TaskDialogStartupLocation

Hiermee haalt u de positie van het taakdialoogvenster op of stelt u deze in wanneer deze wordt weergegeven.

Retouren

De TaskDialogButton gebruiker heeft erop geklikt om het dialoogvenster te sluiten.

Kenmerken

Uitzonderingen

page is null.

De opgegeven page bevat een ongeldige configuratie.

Opmerkingen

Als u het dialoogvenster weergeeft, worden de page en de bijbehorende besturingselementen gebonden totdat deze methode wordt geretourneerd of het dialoogvenster naar een andere pagina wordt genavigeerd.

Van toepassing op

ShowDialogAsync(IntPtr, TaskDialogPage, TaskDialogStartupLocation)

Bron:
TaskDialog.cs
Bron:
TaskDialog.cs
Bron:
TaskDialog.cs

Toont het taakdialoogvenster met de opgegeven eigenaar asynchroon.

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)

Parameters

hwndOwner
IntPtr

nativeint

De greep van het eigenaarsvenster of Zero om een modusloos dialoogvenster weer te geven.

page
TaskDialogPage

Het pagina-exemplaar met de inhoud die in dit taakdialoogvenster wordt weergegeven.

startupLocation
TaskDialogStartupLocation

De positie van het taakdialoogvenster wanneer deze wordt weergegeven.

Retouren

De TaskDialogButton gebruiker heeft erop geklikt om het dialoogvenster te sluiten.

Kenmerken

Uitzonderingen

page is null.

De opgegeven page bevat een ongeldige configuratie.

Opmerkingen

Als u het dialoogvenster weergeeft, worden de page en de bijbehorende besturingselementen gebonden totdat deze methode wordt geretourneerd of het dialoogvenster naar een andere pagina wordt genavigeerd.

Van toepassing op

ShowDialogAsync(IWin32Window, TaskDialogPage, TaskDialogStartupLocation)

Bron:
TaskDialog.cs
Bron:
TaskDialog.cs
Bron:
TaskDialog.cs

Toont het taakdialoogvenster met de opgegeven eigenaar asynchroon.

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)

Parameters

owner
IWin32Window

Het venster eigenaar.

page
TaskDialogPage

Het pagina-exemplaar met de inhoud die in dit taakdialoogvenster wordt weergegeven.

startupLocation
TaskDialogStartupLocation

De positie van het taakdialoogvenster wanneer deze wordt weergegeven.

Retouren

De TaskDialogButton gebruiker heeft erop geklikt om het dialoogvenster te sluiten.

Kenmerken

Uitzonderingen

page is null.

De opgegeven page bevat een ongeldige configuratie.

Opmerkingen

Als u het dialoogvenster weergeeft, worden de page en de bijbehorende besturingselementen gebonden totdat deze methode wordt geretourneerd of het dialoogvenster naar een andere pagina wordt genavigeerd.

Van toepassing op