DateTime.Deconstruct 메서드

정의

오버로드

Deconstruct(DateOnly, TimeOnly)

DateTime instance 및 TimeOnlyDateOnly 분해합니다.

Deconstruct(Int32, Int32, Int32)

, MonthDay로 이 DateOnly instance Year분해합니다.

Deconstruct(DateOnly, TimeOnly)

Source:
DateTime.cs
Source:
DateTime.cs

DateTime instance 및 TimeOnlyDateOnly 분해합니다.

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 instance 값을 나타냅니다DateOnly.

time
TimeOnly

이 메서드가 반환되면 이 DateTime instance 값을 나타냅니다TimeOnly.

적용 대상

Deconstruct(Int32, Int32, Int32)

Source:
DateTime.cs
Source:
DateTime.cs

, MonthDay로 이 DateOnly instance Year분해합니다.

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 instance 값을 나타냅니다Year.

month
Int32

이 메서드가 반환되면 이 DateTime instance 값을 나타냅니다Month.

day
Int32

이 메서드가 반환되면 이 DateTime instance 값을 나타냅니다Day.

적용 대상