语言

TimeOnly.Deconstruct 方法

定义

重载

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

将此 TimeOnly 实例解构为 Hour、 Minute、 Second、 Millisecond和 Microsecond。

Deconstruct(Int32, Int32)

将此实例解构 TimeOnly 为 Hour 和 Minute。

Deconstruct(Int32, Int32, Int32)

将此实例解构为 ,并将Second此TimeOnly实例解构为Hour和 Minute。

Deconstruct(Int32, Int32, Int32, Int32)

将此 TimeOnly 实例解构为 Hour、 Minute、 Second和 Millisecond。

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

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

将此 TimeOnly 实例解构为 Hour、 Minute、 Second、 Millisecond和 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

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

minute
Int32

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

second
Int32

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

millisecond
Int32

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

microsecond
Int32

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

适用于

Deconstruct(Int32, Int32)

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

将此实例解构 TimeOnly 为 Hour 和 Minute。

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

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

minute
Int32

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

适用于

Deconstruct(Int32, Int32, Int32)

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

将此实例解构为 ,并将Second此TimeOnly实例解构为Hour和 Minute。

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

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

minute
Int32

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

second
Int32

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

适用于

Deconstruct(Int32, Int32, Int32, Int32)

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

将此 TimeOnly 实例解构为 Hour、 Minute、 Second和 Millisecond。

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

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

minute
Int32

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

second
Int32

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

millisecond
Int32

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

适用于