FormatterConverter.Convert メソッド

定義

値を特定の型に変換します。

オーバーロード

名前 説明
Convert(Object, Type)

値を指定した Typeに変換します。

Convert(Object, TypeCode)

値を指定した TypeCodeに変換します。

Convert(Object, Type)

ソース:
FormatterConverter.cs
ソース:
FormatterConverter.cs
ソース:
FormatterConverter.cs
ソース:
FormatterConverter.cs
ソース:
FormatterConverter.cs
ソース:
FormatterConverter.cs

値を指定した Typeに変換します。

public:
 virtual System::Object ^ Convert(System::Object ^ value, Type ^ type);
public object Convert(object value, Type type);
abstract member Convert : obj * Type -> obj
override this.Convert : obj * Type -> obj
Public Function Convert (value As Object, type As Type) As Object

パラメーター

value
Object

変換するオブジェクト。

type
Type

Typeの変換先となるvalue

返品

変換されたvaluenull パラメーターがtypeされている場合はnull

実装

例外

value パラメーターはnull

適用対象

Convert(Object, TypeCode)

ソース:
FormatterConverter.cs
ソース:
FormatterConverter.cs
ソース:
FormatterConverter.cs
ソース:
FormatterConverter.cs
ソース:
FormatterConverter.cs
ソース:
FormatterConverter.cs

値を指定した TypeCodeに変換します。

public:
 virtual System::Object ^ Convert(System::Object ^ value, TypeCode typeCode);
public object Convert(object value, TypeCode typeCode);
abstract member Convert : obj * TypeCode -> obj
override this.Convert : obj * TypeCode -> obj
Public Function Convert (value As Object, typeCode As TypeCode) As Object

パラメーター

value
Object

変換するオブジェクト。

typeCode
TypeCode

TypeCodeの変換先となるvalue

返品

変換されたvaluenull パラメーターがtypeされている場合はnull

実装

例外

value パラメーターはnull

適用対象