IVsTaskCompletionSource.SetFaulted(Int32) Method

Definition

Sets the task owned by this source to the faulted state (with the given HRESULT code).

public:
 void SetFaulted(int hr);
public:
 void SetFaulted(int hr);
void SetFaulted(int hr);
public void SetFaulted (int hr);
abstract member SetFaulted : int -> unit
Public Sub SetFaulted (hr As Integer)

Parameters

hr
Int32

The error code to set in the faulted state.

Remarks

This method is safe to access from any thread.

Applies to