Język

TaskDialog.ShowDialogAsync Metoda

Definicja

Przeciążenia

Nazwisko Opis
ShowDialogAsync(TaskDialogPage, TaskDialogStartupLocation)

Wyświetla okno dialogowe zadania z określonym właścicielem asynchronicznie.

ShowDialogAsync(IntPtr, TaskDialogPage, TaskDialogStartupLocation)

Wyświetla okno dialogowe zadania z określonym właścicielem asynchronicznie.

ShowDialogAsync(IWin32Window, TaskDialogPage, TaskDialogStartupLocation)

Wyświetla okno dialogowe zadania z określonym właścicielem asynchronicznie.

ShowDialogAsync(TaskDialogPage, TaskDialogStartupLocation)

Źródło:
TaskDialog.cs
Źródło:
TaskDialog.cs
Źródło:
TaskDialog.cs

Wyświetla okno dialogowe zadania z określonym właścicielem asynchronicznie.

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)

Parametry

page
TaskDialogPage

Wystąpienie strony zawierające zawartość wyświetlaną w tym oknie dialogowym zadania.

startupLocation
TaskDialogStartupLocation

Pobiera lub ustawia położenie okna dialogowego zadania po wyświetleniu.

Zwraca

Element TaskDialogButton , który został kliknięty przez użytkownika, aby zamknąć okno dialogowe.

Atrybuty

Wyjątki

Parametr page ma wartość null.

Określona wartość page zawiera nieprawidłową konfigurację.

Uwagi

Wyświetlenie okna dialogowego spowoduje powiązanie kontrolek i do momentu powrotu page tej metody lub przejścia okna dialogowego do innej strony.

Dotyczy

ShowDialogAsync(IntPtr, TaskDialogPage, TaskDialogStartupLocation)

Źródło:
TaskDialog.cs
Źródło:
TaskDialog.cs
Źródło:
TaskDialog.cs

Wyświetla okno dialogowe zadania z określonym właścicielem asynchronicznie.

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)

Parametry

hwndOwner
IntPtr

nativeint

Uchwyt okna właściciela lub Zero w celu wyświetlenia bez moderowego okna dialogowego.

page
TaskDialogPage

Wystąpienie strony zawierające zawartość wyświetlaną w tym oknie dialogowym zadania.

startupLocation
TaskDialogStartupLocation

Pozycja okna dialogowego zadania po wyświetleniu.

Zwraca

Element TaskDialogButton , który został kliknięty przez użytkownika, aby zamknąć okno dialogowe.

Atrybuty

Wyjątki

Parametr page ma wartość null.

Określona wartość page zawiera nieprawidłową konfigurację.

Uwagi

Wyświetlenie okna dialogowego spowoduje powiązanie kontrolek i do momentu powrotu page tej metody lub przejścia okna dialogowego do innej strony.

Dotyczy

ShowDialogAsync(IWin32Window, TaskDialogPage, TaskDialogStartupLocation)

Źródło:
TaskDialog.cs
Źródło:
TaskDialog.cs
Źródło:
TaskDialog.cs

Wyświetla okno dialogowe zadania z określonym właścicielem asynchronicznie.

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)

Parametry

owner
IWin32Window

Okno właściciela.

page
TaskDialogPage

Wystąpienie strony zawierające zawartość wyświetlaną w tym oknie dialogowym zadania.

startupLocation
TaskDialogStartupLocation

Pozycja okna dialogowego zadania po wyświetleniu.

Zwraca

Element TaskDialogButton , który został kliknięty przez użytkownika, aby zamknąć okno dialogowe.

Atrybuty

Wyjątki

Parametr page ma wartość null.

Określona wartość page zawiera nieprawidłową konfigurację.

Uwagi

Wyświetlenie okna dialogowego spowoduje powiązanie kontrolek i do momentu powrotu page tej metody lub przejścia okna dialogowego do innej strony.

Dotyczy