TimeSpan.Multiply Operator

Definition

Overloads

Multiply(Double, TimeSpan)

Returns a new TimeSpan object whose value is the result of multiplying the specified factor and the specified timeSpan instance.

Multiply(TimeSpan, Double)

Returns a new TimeSpan object whose value is the result of multiplying the specified timeSpan instance and the specified factor.

Multiply(Double, TimeSpan)

Returns a new TimeSpan object whose value is the result of multiplying the specified factor and the specified timeSpan instance.

public:
 static TimeSpan operator *(double factor, TimeSpan timeSpan);
public static TimeSpan operator * (double factor, TimeSpan timeSpan);
static member ( * ) : double * TimeSpan -> TimeSpan

Parameters

factor
Double

The value to be multiplied by.

timeSpan
TimeSpan

The value to be multiplied.

Returns

A new object that represents the value of the specified factor multiplied by the value of the specified timeSpan instance.

Multiply(TimeSpan, Double)

Returns a new TimeSpan object whose value is the result of multiplying the specified timeSpan instance and the specified factor.

public:
 static TimeSpan operator *(TimeSpan timeSpan, double factor);
public static TimeSpan operator * (TimeSpan timeSpan, double factor);
static member ( * ) : TimeSpan * double -> TimeSpan

Parameters

timeSpan
TimeSpan

The value to be multiplied.

factor
Double

The value to be multiplied by.

Returns

A new object that represents the value of the specified timeSpan instance multiplied by the value of the specified factor.

Applies to