Activity.ParentId Property

Definition

Gets the ID of this activity's parent.

C#
public string? ParentId { get; }
C#
public string ParentId { get; }

Property Value

The parent ID, if one exists, or null if it does not.

Remarks

If the parent for this Activity comes from outside the process, the Activity does not have a parent but may have a parent ID (which was deserialized from the parent).

This property value can be null if this is a root Activity (that is, it has no Parent). For more information, see ID format.

Applies to

Product Versions
.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
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)