Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
AsyncVoidMethodBuilder Struct
Definition
- Namespace:
- System.Runtime.CompilerServices
- Assemblies:
- mscorlib.dll, System.Threading.Tasks.dll
- Assemblies:
- netstandard.dll, System.Runtime.dll
- Assembly:
- System.Threading.Tasks.dll
- Assembly:
- mscorlib.dll
- Assembly:
- netstandard.dll
- Source:
- AsyncVoidMethodBuilder.cs
- Source:
- AsyncVoidMethodBuilder.cs
- Source:
- AsyncVoidMethodBuilder.cs
- Source:
- AsyncVoidMethodBuilder.cs
- Source:
- AsyncVoidMethodBuilder.cs
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.
Represents a builder for asynchronous methods that do not return a value.
public value class AsyncVoidMethodBuilder
public struct AsyncVoidMethodBuilder
type AsyncVoidMethodBuilder = struct
Public Structure AsyncVoidMethodBuilder
- Inheritance
Remarks
This type and its members are intended for use by the compiler.
Methods
| Name | Description |
|---|---|
| AwaitOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine) |
Schedules the state machine to proceed to the next action when the specified awaiter completes. |
| AwaitUnsafeOnCompleted<TAwaiter,TStateMachine>(TAwaiter, TStateMachine) |
Schedules the state machine to proceed to the next action when the specified awaiter completes. This method can be called from partially trusted code. |
| Create() |
Creates an instance of the AsyncVoidMethodBuilder class. |
| SetException(Exception) |
Binds an exception to the method builder. |
| SetResult() |
Marks the method builder as successfully completed. |
| SetStateMachine(IAsyncStateMachine) |
Associates the builder with the specified state machine. |
| Start<TStateMachine>(TStateMachine) |
Begins running the builder with the associated state machine. |
Applies to
Feedback
Was this page helpful?
