ConnectivityInterval ConnectivityInterval ConnectivityInterval ConnectivityInterval Class

Definition

Provides the start time and duration for an established or prior connection.

public : sealed class ConnectivityInterval : IConnectivityInterval
public sealed class ConnectivityInterval : IConnectivityInterval
Public NotInheritable Class ConnectivityInterval Implements IConnectivityInterval
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

ConnectionDuration ConnectionDuration ConnectionDuration ConnectionDuration

Indicates the duration of connectivity.

public : TimeSpan ConnectionDuration { get; }
public TimeSpan ConnectionDuration { get; }
Public ReadOnly Property ConnectionDuration As TimeSpan
var timeSpan = connectivityInterval.connectionDuration;
Value
TimeSpan TimeSpan TimeSpan TimeSpan

The period of time that represents the duration of connectivity.

StartTime StartTime StartTime StartTime

Indicates when the connection was initially established.

public : DateTime StartTime { get; }
public DateTimeOffset StartTime { get; }
Public ReadOnly Property StartTime As DateTimeOffset
var dateTimeOffset = connectivityInterval.startTime;
Value
DateTime DateTimeOffset DateTimeOffset DateTimeOffset

The time at which the connection was established.