Share via


Zero Field

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents the zero TimeSpan value. This field is read-only.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Shared ReadOnly Zero As TimeSpan
public static readonly TimeSpan Zero
public:
static initonly TimeSpan Zero
static val Zero: TimeSpan
public static final var Zero : TimeSpan

Remarks

Because the value of the Zero field is a TimeSpan object that represents a zero time value, you can compare it with other TimeSpan objects to determine whether the latter represent positive, non-zero, or negative time intervals. You can also use this field to initialize a TimeSpan object to a zero time value.

.NET Framework Security

See Also

Reference

TimeSpan Structure

System Namespace