TypeConverter.GetConvertToException メソッド
変換を実行できなかった場合にスローされる例外を返します。
名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文
'宣言
Protected Function GetConvertToException ( _
value As Object, _
destinationType As Type _
) As Exception
'使用
Dim value As Object
Dim destinationType As Type
Dim returnValue As Exception
returnValue = Me.GetConvertToException(value, destinationType)
protected Exception GetConvertToException (
Object value,
Type destinationType
)
protected:
Exception^ GetConvertToException (
Object^ value,
Type^ destinationType
)
protected Exception GetConvertToException (
Object value,
Type destinationType
)
protected function GetConvertToException (
value : Object,
destinationType : Type
) : Exception
パラメータ
- value
変換対象の Object。オブジェクトを使用できない場合は、null 参照 (Visual Basic では Nothing)。
- destinationType
変換しようとした型を表す Type。
戻り値
変換を実行できなかった場合にスローされる例外を表す Exception。
例外
例外の種類 | 条件 |
---|---|
このメソッドによって自動的にスローされます。 |
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 2.0、1.1、1.0
参照
関連項目
TypeConverter クラス
TypeConverter メンバ
System.ComponentModel 名前空間