Share via


TimeOnlyConverter.ConvertTo 方法

定義

使用 自變數,從 TimeOnly 物件轉換指定的值物件。

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
public override object? ConvertTo (System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object? value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object

參數

context
ITypeDescriptorContext

提供格式內容的 ITypeDescriptorContext

culture
CultureInfo

選擇性 CultureInfo。 如果未提供,則會假設使用目前的文化特性。

value
Object

要進行轉換的 Object

destinationType
Type

值將會轉換成這個 Type

傳回

Object,代表轉換的 value

適用於