IVsTaskCompletionSource.SetFaulted(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.