DateTime.Deconstruct Método

Definição

Sobrecargas

Name Description
Deconstruct(DateOnly, TimeOnly)

Desconstrói esta DateTime instância por DateOnly e TimeOnly.

Deconstruct(Int32, Int32, Int32)

Desconstrói esta DateOnly instância por Year, Month, e Day.

Deconstruct(DateOnly, TimeOnly)

Origem:
DateTime.cs
Origem:
DateTime.cs
Origem:
DateTime.cs
Origem:
DateTime.cs

Desconstrói esta DateTime instância por DateOnly e 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)

Parâmetros

date
DateOnly

Quando este método retorna, representa o DateOnly valor desta DateTime instância.

time
TimeOnly

Quando este método retorna, representa o TimeOnly valor desta DateTime instância.

Aplica-se a

Deconstruct(Int32, Int32, Int32)

Origem:
DateTime.cs
Origem:
DateTime.cs
Origem:
DateTime.cs
Origem:
DateTime.cs

Desconstrói esta DateOnly instância por Year, Month, e 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)

Parâmetros

year
Int32

Quando este método retorna, representa o Year valor desta DateTime instância.

month
Int32

Quando este método retorna, representa o Month valor desta DateTime instância.

day
Int32

Quando este método retorna, representa o Day valor desta DateTime instância.

Aplica-se a