ValueTask.IsFaulted 属性

定义

获取指示此对象是否表示失败的操作的值。Gets a value that indicates whether this object represents a failed operation.

public:
 property bool IsFaulted { bool get(); };
public bool IsFaulted { get; }
member this.IsFaulted : bool
Public ReadOnly Property IsFaulted As Boolean

属性值

Boolean

true 如果此对象表示失败的操作,则为; 否则为。否则为 falsetrue if this object represents a failed operation; otherwise, false.

适用于