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

定义

通过 DateOnlyTimeOnlyTimeSpan解构此DateTimeOffset实例。

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 实例的值。

适用于