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

定義

將此 DateTimeOffset 實例解構為 DateOnlyTimeOnlyTimeSpan和 。

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

當此方法回傳時,代表 DateOnlyDateTimeOffset 實例的值。

time
TimeOnly

當此方法回傳時,代表 TimeOnlyDateTimeOffset 實例的值。

offset
TimeSpan

當此方法回傳時,代表 OffsetDateTimeOffset 實例的值。

適用於