DateTime.Deconstruct Methode

Definition

Überlädt

Name Beschreibung
Deconstruct(DateOnly, TimeOnly)

Deconstructs this DateTime instance by DateOnly and TimeOnly.

Deconstruct(Int32, Int32, Int32)

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

Deconstruct(DateOnly, TimeOnly)

Quelle:
DateTime.cs
Quelle:
DateTime.cs
Quelle:
DateTime.cs
Quelle:
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)

Parameter

date
DateOnly

Wenn diese Methode zurückgegeben wird, stellt sie den DateOnly Wert dieser DateTime Instanz dar.

time
TimeOnly

Wenn diese Methode zurückgegeben wird, stellt sie den TimeOnly Wert dieser DateTime Instanz dar.

Gilt für:

Deconstruct(Int32, Int32, Int32)

Quelle:
DateTime.cs
Quelle:
DateTime.cs
Quelle:
DateTime.cs
Quelle:
DateTime.cs

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

Parameter

year
Int32

Wenn diese Methode zurückgegeben wird, stellt sie den Year Wert dieser DateTime Instanz dar.

month
Int32

Wenn diese Methode zurückgegeben wird, stellt sie den Month Wert dieser DateTime Instanz dar.

day
Int32

Wenn diese Methode zurückgegeben wird, stellt sie den Day Wert dieser DateTime Instanz dar.

Gilt für: