共用方式為


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>

所建立的產生器。

適用於