AsyncHelpers.HandleAsyncEntryPoint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| HandleAsyncEntryPoint(Task) |
This method is intended to be used by a compiler-generated async entry point. |
| HandleAsyncEntryPoint(Task<Int32>) |
This method is intended to be used by a compiler-generated async entry point. |
HandleAsyncEntryPoint(Task)
- Source:
- AsyncHelpers.NonBrowser.cs
This method is intended to be used by a compiler-generated async entry point.
public:
static void HandleAsyncEntryPoint(System::Threading::Tasks::Task ^ task);
public static void HandleAsyncEntryPoint(System.Threading.Tasks.Task task);
static member HandleAsyncEntryPoint : System.Threading.Tasks.Task -> unit
Public Shared Sub HandleAsyncEntryPoint (task As Task)
Parameters
- task
- Task
The result from the main entry point to await.
Remarks
This member supports .NET infrastructure and is not intended to be used directly from your code.
Applies to
HandleAsyncEntryPoint(Task<Int32>)
- Source:
- AsyncHelpers.NonBrowser.cs
This method is intended to be used by a compiler-generated async entry point.
public:
static int HandleAsyncEntryPoint(System::Threading::Tasks::Task<int> ^ task);
public static int HandleAsyncEntryPoint(System.Threading.Tasks.Task<int> task);
static member HandleAsyncEntryPoint : System.Threading.Tasks.Task<int> -> int
Public Shared Function HandleAsyncEntryPoint (task As Task(Of Integer)) As Integer
Parameters
Returns
The exit code returned by the entry point on non-browser platforms, or a placeholder value on browser platforms.
Remarks
This member supports .NET infrastructure and is not intended to be used directly from your code.