語言

DateOnly.Deconstruct(Int32, Int32, Int32) 方法

定義

由 DateOnlyYear、 Month和 Day分解出來。

public:
 void Deconstruct([Runtime::InteropServices::Out] int % year, [Runtime::InteropServices::Out] int % month, [Runtime::InteropServices::Out] int % day);
public void Deconstruct(out int year, out int month, out int day);
member this.Deconstruct : int * int * int -> unit
Public Sub Deconstruct (ByRef year As Integer, ByRef month As Integer, ByRef day As Integer)

參數

year
Int32

當此方法回傳時,代表 Year 該 DateOnly 實例的值。

month
Int32

當此方法回傳時,代表 Month 該 DateOnly 實例的值。

day
Int32

當此方法回傳時,代表 Day 該 DateOnly 實例的值。

適用於