TimeSpan.Multiply 運算子

定義

多載

Multiply(Double, TimeSpan)

傳回新的 TimeSpan 物件,其值是指定的 factor 與指定的 timeSpan 執行個體相乘後的結果。Returns a new TimeSpan object whose value is the result of multiplying the specified factor and the specified timeSpan instance.

Multiply(TimeSpan, Double)

傳回新的 TimeSpan 物件,其值是指定的 timeSpan 執行個體與指定 factor 相乘後的結果。Returns a new TimeSpan object whose value is the result of multiplying the specified timeSpan instance and the specified factor.

Multiply(Double, TimeSpan)

傳回新的 TimeSpan 物件,其值是指定的 factor 與指定的 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
Public Shared Operator * (factor As Double, timeSpan As TimeSpan) As TimeSpan

參數

factor
Double

作為乘數的值。The value to be multiplied by.

timeSpan
TimeSpan

作為被乘數的值。The value to be multiplied.

傳回

TimeSpan

新的物件,代表指定的 factor 值乘以指定的 timeSpan 執行個體值。A new object that represents the value of the specified factor multiplied by the value of the specified timeSpan instance.

適用於

Multiply(TimeSpan, Double)

傳回新的 TimeSpan 物件,其值是指定的 timeSpan 執行個體與指定 factor 相乘後的結果。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
Public Shared Operator * (timeSpan As TimeSpan, factor As Double) As TimeSpan

參數

timeSpan
TimeSpan

作為被乘數的值。The value to be multiplied.

factor
Double

作為乘數的值。The value to be multiplied by.

傳回

TimeSpan

新的物件,代表指定的 timeSpan 執行個體值乘以指定的 factor 值。A new object that represents the value of the specified timeSpan instance multiplied by the value of the specified factor.

適用於