TaskDialog.ShowDialogAsync Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| ShowDialogAsync(TaskDialogPage, TaskDialogStartupLocation) |
Visar aktivitetsdialogrutan med den angivna ägaren asynkront. |
| ShowDialogAsync(IntPtr, TaskDialogPage, TaskDialogStartupLocation) |
Visar aktivitetsdialogrutan med den angivna ägaren asynkront. |
| ShowDialogAsync(IWin32Window, TaskDialogPage, TaskDialogStartupLocation) |
Visar aktivitetsdialogrutan med den angivna ägaren asynkront. |
ShowDialogAsync(TaskDialogPage, TaskDialogStartupLocation)
- Källa:
- TaskDialog.cs
- Källa:
- TaskDialog.cs
- Källa:
- TaskDialog.cs
Visar aktivitetsdialogrutan med den angivna ägaren asynkront.
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)
Parametrar
- page
- TaskDialogPage
Den sidinstans som innehåller innehållet i den här aktivitetsdialogrutan.
- startupLocation
- TaskDialogStartupLocation
Hämtar eller anger positionen för aktivitetsdialogrutan när den visas.
Returer
Det TaskDialogButton som klickades av användaren för att stänga dialogrutan.
- Attribut
Undantag
page är null.
Den angivna page innehåller en ogiltig konfiguration.
Kommentarer
Om dialogrutan visas binds page kontrollerna och tills den här metoden returneras eller dialogrutan navigeras till en annan sida.
Gäller för
ShowDialogAsync(IntPtr, TaskDialogPage, TaskDialogStartupLocation)
- Källa:
- TaskDialog.cs
- Källa:
- TaskDialog.cs
- Källa:
- TaskDialog.cs
Visar aktivitetsdialogrutan med den angivna ägaren asynkront.
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)
Parametrar
- page
- TaskDialogPage
Den sidinstans som innehåller innehållet i den här aktivitetsdialogrutan.
- startupLocation
- TaskDialogStartupLocation
Positionen för aktivitetsdialogrutan när den visas.
Returer
Det TaskDialogButton som klickades av användaren för att stänga dialogrutan.
- Attribut
Undantag
page är null.
Den angivna page innehåller en ogiltig konfiguration.
Kommentarer
Om dialogrutan visas binds page kontrollerna och tills den här metoden returneras eller dialogrutan navigeras till en annan sida.
Gäller för
ShowDialogAsync(IWin32Window, TaskDialogPage, TaskDialogStartupLocation)
- Källa:
- TaskDialog.cs
- Källa:
- TaskDialog.cs
- Källa:
- TaskDialog.cs
Visar aktivitetsdialogrutan med den angivna ägaren asynkront.
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)
Parametrar
- owner
- IWin32Window
Ägarfönstret.
- page
- TaskDialogPage
Den sidinstans som innehåller innehållet i den här aktivitetsdialogrutan.
- startupLocation
- TaskDialogStartupLocation
Positionen för aktivitetsdialogrutan när den visas.
Returer
Det TaskDialogButton som klickades av användaren för att stänga dialogrutan.
- Attribut
Undantag
page är null.
Den angivna page innehåller en ogiltig konfiguration.
Kommentarer
Om dialogrutan visas binds page kontrollerna och tills den här metoden returneras eller dialogrutan navigeras till en annan sida.