ObjectConverter.ConvertValue(Object, Type, String) 메서드

정의

개체를 한 개체 형식에서 다른 개체 형식으로 변환합니다. 이 클래스는 사용되지 않습니다. 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 으로 변환할 수 없습니다.

적용 대상