共用方式為


ISymUnmanagedAsyncMethodPropertiesWriter::DefineAsyncStepInfo 方法

在目前的 方法中定義 async await 作業的群組。

每個收益位移都會比對 await 的傳回指令,以識別潛在的收益。 每個 breakpointMethod/breakpointOffset 配對都會告訴我們非同步作業將繼續執行的位置,而這些作業可能位於不同的方法中。

語法

HRESULT DefineAsyncStepInfo(    [in] ULONG32 count,    [in, size_is(count)] ULONG32 yieldOffsets[],    [in, size_is(count)] ULONG32 breakpointOffset[],     [in, size_is(count)] mdToken breakpointMethod[]);  

參數

參數 描述
count
yieldOffsets
breakpointOffset
breakpointMethod

傳回值

傳回 HRESULT

規格需求

頭: CorSym.idl、CorSym.h

另請參閱