ValueTask<TResult>.CreateAsyncMethodBuilder 方法

定义

创建方法生成器以使用异步方法。

public:
 static System::Runtime::CompilerServices::AsyncValueTaskMethodBuilder<TResult> CreateAsyncMethodBuilder();
public static System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder<TResult> CreateAsyncMethodBuilder ();
static member CreateAsyncMethodBuilder : unit -> System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder<'Result>
Public Shared Function CreateAsyncMethodBuilder () As AsyncValueTaskMethodBuilder(Of TResult)

返回

AsyncValueTaskMethodBuilder<TResult>

创建的生成器。

适用于