DateTime.Deconstruct Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deconstruct(DateOnly, TimeOnly) |
Deconstructs this DateTime instance by DateOnly and TimeOnly. |
Deconstruct(Int32, Int32, Int32) |
Deconstructs this DateOnly instance by Year, Month, and Day. |
- Source:
- DateTime.cs
- Source:
- DateTime.cs
public:
void Deconstruct([Runtime::InteropServices::Out] DateOnly % date, [Runtime::InteropServices::Out] TimeOnly % time);
C#
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)
Parameters
Applies to
.NET 10 a ďalšie verzie
Produkt | Verzie |
---|---|
.NET | 8, 9, 10 |
- Source:
- DateTime.cs
- Source:
- DateTime.cs
public:
void Deconstruct([Runtime::InteropServices::Out] int % year, [Runtime::InteropServices::Out] int % month, [Runtime::InteropServices::Out] int % day);
C#
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)
Parameters
Applies to
.NET 10 a ďalšie verzie
Produkt | Verzie |
---|---|
.NET | 8, 9, 10 |
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: