Bridge

TimeSpan Constructor (Int32, Int32, Int32, Int32, Int32)

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

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

Syntax


public TimeSpan(
	int days,
	int hours,
	int minutes,
	int seconds,
	int milliseconds
)
Public Sub New ( _
	days As Integer, _
	hours As Integer, _
	minutes As Integer, _
	seconds As Integer, _
	milliseconds As Integer _
)
public:
TimeSpan(
	int^ days, 
	int^ hours, 
	int^ minutes, 
	int^ seconds, 
	int^ milliseconds
)

Parameters

days
Type: System..::..Int32
Number of days.
hours
Type: System..::..Int32
Number of hours.
minutes
Type: System..::..Int32
Number of minutes.
seconds
Type: System..::..Int32
Number of seconds.
milliseconds
Type: System..::..Int32
Number of milliseconds.

Exceptions


ExceptionCondition
System..::..ArgumentOutOfRangeExceptionThe parameters specify a TimeSpan value less than MinValue or greater than MaxValue.