Share via


NetworkUsage.ConnectionDuration Property

Definition

Indicates the duration of connectivity.

public:
 property TimeSpan ConnectionDuration { TimeSpan get(); };
TimeSpan ConnectionDuration();
public System.TimeSpan ConnectionDuration { get; }
var timeSpan = networkUsage.connectionDuration;
Public ReadOnly Property ConnectionDuration As TimeSpan

Property Value

The period of time that represents the duration of connectivity.

Windows requirements

Requirements Description
Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Applies to