Compartir a través de


IVsTaskCompletionSource.SetResult(Object) Method

Definition

Sets the task owned by this source to completed state with the result.

public:
 void SetResult(System::Object ^ result);
public:
 void SetResult(Platform::Object ^ result);
void SetResult(winrt::Windows::Foundation::IInspectable const & result);
public void SetResult (object result);
abstract member SetResult : obj -> unit
Public Sub SetResult (result As Object)

Parameters

result
Object

The result to be set.

Remarks

This method is safe to access from any thread.

Applies to