共用方式為


KeyTimeConverter.ConvertTo 方法

定義

嘗試將 KeyTime 的執行個體轉換為另一個型別。

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ value, Type ^ destinationType);
[System.Security.SecurityCritical]
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
[<System.Security.SecurityCritical>]
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (typeDescriptorContext As ITypeDescriptorContext, cultureInfo As CultureInfo, value As Object, destinationType As Type) As Object

參數

typeDescriptorContext
ITypeDescriptorContext

轉換所需的內容資訊。

cultureInfo
CultureInfo

轉換期間遵守的文化特性資訊。

value
Object

轉換的來源 KeyTime 值。

destinationType
Type

正在評估以進行轉換的型別。

傳回

Object

新物件,以 value 為基礎。

屬性

適用於