Szerkesztés

Megosztás a következőn keresztül:


DateTime.Deconstruct Method

Definition

Overloads

Deconstruct(DateOnly, TimeOnly)

Deconstructs this DateTime instance by DateOnly and TimeOnly.

Deconstruct(Int32, Int32, Int32)

Deconstructs this DateOnly instance by Year, Month, and Day.

Deconstruct(DateOnly, TimeOnly)

Source:
DateTime.cs
Source:
DateTime.cs

Deconstructs this DateTime instance by DateOnly and TimeOnly.

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

Parameters

date
DateOnly

When this method returns, represents the DateOnly value of this DateTime instance.

time
TimeOnly

When this method returns, represents the TimeOnly value of this DateTime instance.

Applies to

Deconstruct(Int32, Int32, Int32)

Source:
DateTime.cs
Source:
DateTime.cs

Deconstructs this DateOnly instance by Year, Month, and 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)

Parameters

year
Int32

When this method returns, represents the Year value of this DateTime instance.

month
Int32

When this method returns, represents the Month value of this DateTime instance.

day
Int32

When this method returns, represents the Day value of this DateTime instance.

Applies to