PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Threading­Instrumentation Namespace / Task­Info­Registry Class / Task­Info­Registry Methods / Task­Info­Registry.​Get­Task­Info Method

TaskInfoRegistry.GetTaskInfo Method

Gets a TaskInfo for a specific Task.

Namespace:  PostSharp.Patterns.Diagnostics.ThreadingInstrumentation
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public static TaskInfo GetTaskInfo(
	Task task
)

Parameters

task
Type: System.Threading.Tasks.Task
A Task.

Return Value

Type: TaskInfo
The TaskInfo associated with task, or null if no TaskInfo is associated with task.
See Also