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)

Source:
TimeSpan.cs
Source:
TimeSpan.cs
Source:
TimeSpan.cs

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);

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.

Applies to

.NET 9 및 기타 버전
제품 버전
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1

Multiply(TimeSpan, Double)

Source:
TimeSpan.cs
Source:
TimeSpan.cs
Source:
TimeSpan.cs

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);

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

.NET 9 및 기타 버전
제품 버전
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1