TaskCanceledException.Task Proprietà

Definizione

Ottiene l'attività associata a questa eccezione.

public:
 property System::Threading::Tasks::Task ^ Task { System::Threading::Tasks::Task ^ get(); };
public System.Threading.Tasks.Task Task { get; }
member this.Task : System.Threading.Tasks.Task
Public ReadOnly Property Task As Task

Valore della proprietà

Riferimento all'oggetto Task associato a questa eccezione.

Commenti

È consentito che nessuna attività sia associata a un oggetto TaskCanceledException, nel qual caso questa proprietà restituirà Null.

Questa proprietà è thread-safe e può essere usata contemporaneamente da più thread.

Si applica a

Vedi anche