Activity.DisplayName Property

Definition

Gets or sets the display name of the activity.

C#
public string DisplayName { get; set; }

Property Value

A string that represents the activity display name.

Remarks

DisplayName is intended to be used in a user interface and need not be the same as OperationName.

If the DisplayName property is not set, it will return the same value as OperationName.

Applies to

Product Versions
.NET 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)