TimeSpan.Division 運算子
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
Division(TimeSpan, TimeSpan) |
傳回新的 Double 值,這個值是由 |
Division(TimeSpan, Double) |
傳回新的 TimeSpan 物件,其值是由指定的 |
- 來源:
- TimeSpan.cs
- 來源:
- TimeSpan.cs
- 來源:
- TimeSpan.cs
傳回新的 Double 值,這個值是由 t2
除 t1
的結果。
public:
static double operator /(TimeSpan t1, TimeSpan t2);
C#
public static double operator /(TimeSpan t1, TimeSpan t2);
static member ( / ) : TimeSpan * TimeSpan -> double
Public Shared Operator / (t1 As TimeSpan, t2 As TimeSpan) As Double
參數
- t1
- TimeSpan
除法或要除法的值。
- t2
- TimeSpan
要除以的值。
傳回
新值,表示除以 t2
值 t1
的結果。
適用於
.NET 10 和其他版本
產品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |
- 來源:
- TimeSpan.cs
- 來源:
- TimeSpan.cs
- 來源:
- TimeSpan.cs
傳回新的 TimeSpan 物件,其值是由指定的 divisor
分割指定 timeSpan
的結果。
public:
static TimeSpan operator /(TimeSpan timeSpan, double divisor);
C#
public static TimeSpan operator /(TimeSpan timeSpan, double divisor);
static member ( / ) : TimeSpan * double -> TimeSpan
Public Shared Operator / (timeSpan As TimeSpan, divisor As Double) As TimeSpan
參數
- timeSpan
- TimeSpan
除數或要除數的值。
- divisor
- Double
要除以的值。
傳回
新的物件,表示 timeSpan
除以 divisor
的值。
適用於
.NET 10 和其他版本
產品 | 版本 |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |