Читати англійською Редагувати

Поділитися через


Activity.Parent Property

Definition

Gets the parent Activity that created this activity.

C#
public System.Diagnostics.Activity? Parent { get; }
C#
public System.Diagnostics.Activity Parent { get; }

Property Value

The parent of this Activity, if it is from the same process, or null if this instance has no parent (it is a root activity) or if the parent is from outside the process.

Applies to

Продукт Версії
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)