DateTime.Deconstruct Metoda

Definice

Přetížení

Name Description
Deconstruct(DateOnly, TimeOnly)

Dekonstrukce této DateTime instance pomocí DateOnly a TimeOnly.

Deconstruct(Int32, Int32, Int32)

Dekonstrukce této DateOnly instance pomocí Year, Montha Day.

Deconstruct(DateOnly, TimeOnly)

Zdroj:
DateTime.cs
Zdroj:
DateTime.cs
Zdroj:
DateTime.cs
Zdroj:
DateTime.cs

Dekonstrukce této DateTime instance pomocí DateOnly a 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)

Parametry

date
DateOnly

Když tato metoda vrátí, představuje DateOnly hodnotu této DateTime instance.

time
TimeOnly

Když tato metoda vrátí, představuje TimeOnly hodnotu této DateTime instance.

Platí pro

Deconstruct(Int32, Int32, Int32)

Zdroj:
DateTime.cs
Zdroj:
DateTime.cs
Zdroj:
DateTime.cs
Zdroj:
DateTime.cs

Dekonstrukce této DateOnly instance pomocí Year, Montha 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)

Parametry

year
Int32

Když tato metoda vrátí, představuje Year hodnotu této DateTime instance.

month
Int32

Když tato metoda vrátí, představuje Month hodnotu této DateTime instance.

day
Int32

Když tato metoda vrátí, představuje Day hodnotu této DateTime instance.

Platí pro