语言

DateTimeOffset.Deconstruct(DateOnly, TimeOnly, TimeSpan) 方法

定义

将此 DateTimeOffset 实例解构为 DateOnly, TimeOnly并 TimeSpan。

public:
 void Deconstruct([Runtime::InteropServices::Out] DateOnly % date, [Runtime::InteropServices::Out] TimeOnly % time, [Runtime::InteropServices::Out] TimeSpan % offset);
public void Deconstruct(out DateOnly date, out TimeOnly time, out TimeSpan offset);
member this.Deconstruct : DateOnly * TimeOnly * TimeSpan -> unit
Public Sub Deconstruct (ByRef date As DateOnly, ByRef time As TimeOnly, ByRef offset As TimeSpan)

参数

date
DateOnly

此方法返回时,表示 DateOnly 此 DateTimeOffset 实例的值。

time
TimeOnly

此方法返回时,表示 TimeOnly 此 DateTimeOffset 实例的值。

offset
TimeSpan

此方法返回时,表示 Offset 此 DateTimeOffset 实例的值。

适用于