Activity.Duration Egenskap

Definition

Hämtar varaktigheten för åtgärden.

public:
 property TimeSpan Duration { TimeSpan get(); };
public TimeSpan Duration { get; }
member this.Duration : TimeSpan
Public ReadOnly Property Duration As TimeSpan

Egenskapsvärde

Delta mellan StartTimeUtc och sluttiden om Activity har avslutats (Stop() eller SetEndTime(DateTime) anropats), eller Zero om Activity inte har avslutats och SetEndTime(DateTime) inte anropades.

Gäller för