DateTime.Deconstruct 메서드

정의

오버로드

Name Description
Deconstruct(DateOnly, TimeOnly)

DateTime 인스턴스 DateOnlyTimeOnly를 다음과 같이 분해합니다.

Deconstruct(Int32, Int32, Int32)

DateOnly 인스턴스를 , YearMonth.로 Day분해합니다.

Deconstruct(DateOnly, TimeOnly)

Source:
DateTime.cs
Source:
DateTime.cs
Source:
DateTime.cs
Source:
DateTime.cs

DateTime 인스턴스 DateOnlyTimeOnly를 다음과 같이 분해합니다.

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)

매개 변수

date
DateOnly

이 메서드가 반환되면 이 DateTime 인스턴스의 DateOnly 값을 나타냅니다.

time
TimeOnly

이 메서드가 반환되면 이 DateTime 인스턴스의 TimeOnly 값을 나타냅니다.

적용 대상

Deconstruct(Int32, Int32, Int32)

Source:
DateTime.cs
Source:
DateTime.cs
Source:
DateTime.cs
Source:
DateTime.cs

DateOnly 인스턴스를 , YearMonth.로 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)

매개 변수

year
Int32

이 메서드가 반환되면 이 DateTime 인스턴스의 Year 값을 나타냅니다.

month
Int32

이 메서드가 반환되면 이 DateTime 인스턴스의 Month 값을 나타냅니다.

day
Int32

이 메서드가 반환되면 이 DateTime 인스턴스의 Day 값을 나타냅니다.

적용 대상