Share via


TimeSpanSecondsConverter.ConvertTo 方法

定義

TimeSpan 轉換成 String

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

參數

ctx
ITypeDescriptorContext

ITypeDescriptorContext 物件用於型別轉換。

ci
CultureInfo

在轉換時所使用的 CultureInfo 物件。

value
Object

要轉換成的值。

type
Type

要轉換的目標類型。

傳回

表示 value 參數的 String (以分鐘計)。

備註

當系統寫入組態檔以將 轉換成 TimeSpanString時,ConvertTo系統會使用 方法。

適用於