共用方式為


InfiniteIntConverter.ConvertTo 方法

定義

Int32 轉換成 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

要轉換的目標類型。

傳回

如果 valueInt32.MaxValue,則String為 「infinite」,String否則為 表示 參數的 value

備註

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

適用於