PowerTools PlusPak for Windows Forms 8.0J
ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) メソッド

書式コンテキストを提供するSystem.ComponentModel.ITypeDescriptorContext。
数を表すカルチャを指定するSystem.Globalization.CultureInfo。
変換するオブジェクト。
オブジェクトの変換先の型。
指定したオブジェクトを別の型に変換します。
構文
Public Overloads Overrides Function ConvertTo( _
   ByVal context As ITypeDescriptorContext, _
   ByVal culture As CultureInfo, _
   ByVal value As Object, _
   ByVal destinationType As Type _
) As Object

パラメータ

context
書式コンテキストを提供するSystem.ComponentModel.ITypeDescriptorContext。
culture
数を表すカルチャを指定するSystem.Globalization.CultureInfo。
value
変換するオブジェクト。
destinationType
オブジェクトの変換先の型。

戻り値の型

変換された値を表すSystem.Object。
例外
例外解説
System.NotSupportedException変換を実行できません。
System.ArgumentNullExceptiondestinationTypeはnullです。
プラットフォーム

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

NumberConverterAuto クラス
NumberConverterAuto メンバ
オーバーロード一覧

Send Feedback