NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TimeSpan Constructor

Initializes a new instance of the TimeSpan class.

Overload List

Initializes a new instance of the TimeSpan class to a specified number of ticks.

[Visual Basic] Overloads Public Sub New(Long)
[C#] public TimeSpan(long);
[C++] public: TimeSpan(__int64);
[JScript] public function TimeSpan(long);

Initializes a new instance of the TimeSpan class to a specified number of hours, minutes, and seconds.

[Visual Basic] Overloads Public Sub New(Integer, Integer, Integer)
[C#] public TimeSpan(int, int, int);
[C++] public: TimeSpan(int, int, int);
[JScript] public function TimeSpan(int, int, int);

Initializes a new instance of the TimeSpan class to a specified number of days, hours, minutes, and seconds.

[Visual Basic] Overloads Public Sub New(Integer, Integer, Integer, Integer)
[C#] public TimeSpan(int, int, int, int);
[C++] public: TimeSpan(int, int, int, int);
[JScript] public function TimeSpan(int, int, int, int);

Initializes a new instance of the TimeSpan class to a specified number of days, hours, minutes, and seconds.

[Visual Basic] Overloads Public Sub New(Integer, Integer, Integer, Integer, Integer)
[C#] public TimeSpan(int, int, int, int, int);
[C++] public: TimeSpan(int, int, int, int, int);
[JScript] public function TimeSpan(int, int, int, int, int);

See Also

TimeSpan Structure | TimeSpan Members | System Namespace