ObjectConverter.ConvertValue(Object, Type, String) メソッド

定義

オブジェクトを 1 つのオブジェクト型から別のオブジェクト型に変換します。 このクラスは今後は使用しません。 代わりに、 Convert クラスと Format(String, Object) メソッドを使用してください。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

public:
 static System::Object ^ ConvertValue(System::Object ^ value, Type ^ toType, System::String ^ formatString);
public static object ConvertValue(object value, Type toType, string formatString);
static member ConvertValue : obj * Type * string -> obj
Public Shared Function ConvertValue (value As Object, toType As Type, formatString As String) As Object

パラメーター

value
Object

変換するオブジェクト。

toType
Type

Typeを変換するvalue

formatString
String

変換中に適用する書式指定文字列。

返品

変換されたオブジェクト。

例外

Value このメソッドを使用して toType 型に変換することはできません。

適用対象