DateTime.Deconstruct Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| Deconstruct(DateOnly, TimeOnly) |
Dekonstruerar den här DateTime instansen av DateOnly och TimeOnly. |
| Deconstruct(Int32, Int32, Int32) |
Dekonstruerar den här DateOnly instansen av Year, Monthoch Day. |
Deconstruct(DateOnly, TimeOnly)
- Källa:
- DateTime.cs
- Källa:
- DateTime.cs
- Källa:
- DateTime.cs
- Källa:
- DateTime.cs
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)
Parametrar
- date
- DateOnly
När den här metoden returnerar representerar värdet för den här DateTime instansenDateOnly.
- time
- TimeOnly
När den här metoden returnerar representerar värdet för den här DateTime instansenTimeOnly.
Gäller för
Deconstruct(Int32, Int32, Int32)
- Källa:
- DateTime.cs
- Källa:
- DateTime.cs
- Källa:
- DateTime.cs
- Källa:
- DateTime.cs
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)
Parametrar
- month
- Int32
När den här metoden returnerar representerar värdet för den här DateTime instansenMonth.