TimeOnly.Deconstruct 方法

定义

重载

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

将此TimeOnly实例解构为 Hour、、MinuteSecondMillisecond、 和 Microsecond

Deconstruct(Int32, Int32)

将此 TimeOnly 实例解构为 HourMinute

Deconstruct(Int32, Int32, Int32)

将此 TimeOnly 实例解构为 HourMinuteSecond

Deconstruct(Int32, Int32, Int32, Int32)

将此 TimeOnly 实例解构为 HourMinuteSecondMillisecond

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

Source:
TimeOnly.cs
Source:
TimeOnly.cs

将此TimeOnly实例解构为 Hour、、MinuteSecondMillisecond、 和 Microsecond

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

将此 TimeOnly 实例解构为 HourMinute

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

将此 TimeOnly 实例解构为 HourMinuteSecond

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

将此 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 实例的值。

适用于