DateTime.Deconstruct Metoda

Definicja

Przeciążenia

Deconstruct(DateOnly, TimeOnly)

Dekonstruktoruje to DateTime wystąpienie według DateOnly i TimeOnly.

Deconstruct(Int32, Int32, Int32)

Dekonstruktoruje to DateOnly wystąpienie według Year, Monthi Day.

Deconstruct(DateOnly, TimeOnly)

Źródło:
DateTime.cs
Źródło:
DateTime.cs

Dekonstruktoruje to DateTime wystąpienie według DateOnly i 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

Gdy ta metoda zostanie zwrócona, reprezentuje DateOnly wartość tego DateTime wystąpienia.

time
TimeOnly

Gdy ta metoda zostanie zwrócona, reprezentuje TimeOnly wartość tego DateTime wystąpienia.

Dotyczy

Deconstruct(Int32, Int32, Int32)

Źródło:
DateTime.cs
Źródło:
DateTime.cs

Dekonstruktoruje to DateOnly wystąpienie według Year, Monthi 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

Gdy ta metoda zostanie zwrócona, reprezentuje Year wartość tego DateTime wystąpienia.

month
Int32

Gdy ta metoda zostanie zwrócona, reprezentuje Month wartość tego DateTime wystąpienia.

day
Int32

Gdy ta metoda zostanie zwrócona, reprezentuje Day wartość tego DateTime wystąpienia.

Dotyczy