AwaitExpressionInfo 結構

定義

包含 wait 表達式所有語意資訊的結構。

public value class AwaitExpressionInfo : IEquatable<Microsoft::CodeAnalysis::CSharp::AwaitExpressionInfo>
public struct AwaitExpressionInfo : IEquatable<Microsoft.CodeAnalysis.CSharp.AwaitExpressionInfo>
public readonly struct AwaitExpressionInfo : IEquatable<Microsoft.CodeAnalysis.CSharp.AwaitExpressionInfo>
type AwaitExpressionInfo = struct
Public Structure AwaitExpressionInfo
Implements IEquatable(Of AwaitExpressionInfo)
繼承
AwaitExpressionInfo
實作

屬性

名稱 Description
GetAwaiterMethod

包含 wait 表達式所有語意資訊的結構。

GetResultMethod

包含 wait 表達式所有語意資訊的結構。

IsCompletedProperty

包含 wait 表達式所有語意資訊的結構。

IsDynamic

包含 wait 表達式所有語意資訊的結構。

RuntimeAwaitMethod

當此等待表達式啟用執行時非同步時,代表以下其中之一:

  • 如果這是支援的任務類型,則呼叫 System.Runtime.CompilerServices.AsyncHelpers.Await。 在這種情況下,、GetAwaiterMethodIsCompletedPropertyGetResultMethod、且將為null
  • 呼喚。System.Runtime.CompilerServices.AsyncHelpers.AwaitAwaiter|UnsafeAwaitAwaiter 在這些情況下,若 wait 表達式的其餘部分成功綁定,其他性質可能是非-null

方法

名稱 Description
Equals(AwaitExpressionInfo)

包含 wait 表達式所有語意資訊的結構。

Equals(Object)

包含 wait 表達式所有語意資訊的結構。

GetHashCode()

包含 wait 表達式所有語意資訊的結構。

適用於