Task.CompletedTask Property
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.
Gets a task that has already completed successfully.
public:
static property System::Threading::Tasks::Task ^ CompletedTask { System::Threading::Tasks::Task ^ get(); };
public static System.Threading.Tasks.Task CompletedTask { get; }
static member CompletedTask : System.Threading.Tasks.Task
Public Shared ReadOnly Property CompletedTask As Task
Property Value
The successfully completed task.
Remarks
This property returns a task whose Status property is set to RanToCompletion. To create a task that returns a value and runs to completion, call the FromResult method.
Repeated attempts to retrieve this property value may not always return the same instance.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru