TimeOnly.Deconstruct 方法

定义

重载

名称 说明
Deconstruct(Int32, Int32, Int32, Int32, Int32)

将此 TimeOnly 实例解构为 HourMinuteSecondMillisecondMicrosecond

Deconstruct(Int32, Int32)

将此实例解构 TimeOnlyHourMinute

Deconstruct(Int32, Int32, Int32)

将此实例解构为 ,并将SecondTimeOnly实例解构为HourMinute

Deconstruct(Int32, Int32, Int32, Int32)

将此 TimeOnly 实例解构为 HourMinuteSecondMillisecond

Deconstruct(Int32, Int32, Int32, Int32, Int32)

Source:
TimeOnly.cs
Source:
TimeOnly.cs
Source:
TimeOnly.cs
Source:
TimeOnly.cs

将此 TimeOnly 实例解构为 HourMinuteSecondMillisecondMicrosecond

public:
 void Deconstruct([Runtime::InteropServices::Out] int % hour, [Runtime::InteropServices::Out] int % minute, [Runtime::InteropServices::Out] int % second, [Runtime::InteropServices::Out] int % millisecond, [Runtime::InteropServices::Out] int % microsecond);
public void Deconstruct(out int hour, out int minute, out int second, out int millisecond, out int microsecond);
member this.Deconstruct : int * int * int * int * int -> unit
Public Sub Deconstruct (ByRef hour As Integer, ByRef minute As Integer, ByRef second As Integer, ByRef millisecond As Integer, ByRef microsecond As Integer)

参数

hour
Int32

此方法返回时,包含 HourTimeOnly 实例的值。

minute
Int32

此方法返回时,包含 MinuteTimeOnly 实例的值。

second
Int32

此方法返回时,包含 SecondTimeOnly 实例的值。

millisecond
Int32

此方法返回时,包含 MillisecondTimeOnly 实例的值。

microsecond
Int32

此方法返回时,包含 MicrosecondTimeOnly 实例的值。

适用于

Deconstruct(Int32, Int32)

Source:
TimeOnly.cs
Source:
TimeOnly.cs
Source:
TimeOnly.cs
Source:
TimeOnly.cs

将此实例解构 TimeOnlyHourMinute

public:
 void Deconstruct([Runtime::InteropServices::Out] int % hour, [Runtime::InteropServices::Out] int % minute);
public void Deconstruct(out int hour, out int minute);
member this.Deconstruct : int * int -> unit
Public Sub Deconstruct (ByRef hour As Integer, ByRef minute As Integer)

参数

hour
Int32

此方法返回时,包含 HourTimeOnly 实例的值。

minute
Int32

此方法返回时,包含 MinuteTimeOnly 实例的值。

适用于

Deconstruct(Int32, Int32, Int32)

Source:
TimeOnly.cs
Source:
TimeOnly.cs
Source:
TimeOnly.cs
Source:
TimeOnly.cs

将此实例解构为 ,并将SecondTimeOnly实例解构为HourMinute

public:
 void Deconstruct([Runtime::InteropServices::Out] int % hour, [Runtime::InteropServices::Out] int % minute, [Runtime::InteropServices::Out] int % second);
public void Deconstruct(out int hour, out int minute, out int second);
member this.Deconstruct : int * int * int -> unit
Public Sub Deconstruct (ByRef hour As Integer, ByRef minute As Integer, ByRef second As Integer)

参数

hour
Int32

此方法返回时,包含 HourTimeOnly 实例的值。

minute
Int32

此方法返回时,包含 MinuteTimeOnly 实例的值。

second
Int32

此方法返回时,包含 SecondTimeOnly 实例的值。

适用于

Deconstruct(Int32, Int32, Int32, Int32)

Source:
TimeOnly.cs
Source:
TimeOnly.cs
Source:
TimeOnly.cs
Source:
TimeOnly.cs

将此 TimeOnly 实例解构为 HourMinuteSecondMillisecond

public:
 void Deconstruct([Runtime::InteropServices::Out] int % hour, [Runtime::InteropServices::Out] int % minute, [Runtime::InteropServices::Out] int % second, [Runtime::InteropServices::Out] int % millisecond);
public void Deconstruct(out int hour, out int minute, out int second, out int millisecond);
member this.Deconstruct : int * int * int * int -> unit
Public Sub Deconstruct (ByRef hour As Integer, ByRef minute As Integer, ByRef second As Integer, ByRef millisecond As Integer)

参数

hour
Int32

此方法返回时,包含 HourTimeOnly 实例的值。

minute
Int32

此方法返回时,包含 MinuteTimeOnly 实例的值。

second
Int32

此方法返回时,包含 SecondTimeOnly 实例的值。

millisecond
Int32

此方法返回时,包含 MillisecondTimeOnly 实例的值。

适用于